Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001586/0.001586, allocations: 215.8 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.547/1.547, allocations: 230.6 MB / 257.5 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001766/0.001766, allocations: 43.92 kB / 377.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3282, allocations: 53.36 MB / 431.1 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004621/0.3328, allocations: 2.734 MB / 433.9 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002018/0.3348, allocations: 0.9581 MB / 434.8 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002378/0.3351, allocations: 11.94 kB / 434.8 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002662/0.3353, allocations: 67.31 kB / 434.9 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000287/0.3356, allocations: 71.44 kB / 435 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007547/0.3364, allocations: 238.6 kB / 435.2 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004504/0.3368, allocations: 382.9 kB / 435.6 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003173/0.3371, allocations: 137.4 kB / 435.7 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000196/0.3373, allocations: 147.4 kB / 435.8 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001965/0.3375, allocations: 139.3 kB / 436 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.56e-05/0.3376, allocations: 32 kB / 436 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.3377, allocations: 75.94 kB / 436.1 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001138/0.3378, allocations: 79.7 kB / 436.2 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001549/0.338, allocations: 163.1 kB / 436.3 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005814/0.3386, allocations: 426.5 kB / 436.7 MB, free: 1.254 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.3386, allocations: 3.984 kB / 436.7 MB, free: 1.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3386, allocations: 0 / 436.7 MB, free: 1.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.3386, allocations: 0 / 436.7 MB, free: 1.25 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001176/0.3398, allocations: 0.5792 MB / 437.3 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.3398, allocations: 8.031 kB / 437.3 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.418e-05/0.3399, allocations: 58.73 kB / 437.4 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.467e-05/0.34, allocations: 40.7 kB / 437.4 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005623/0.3405, allocations: 273.9 kB / 437.7 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.69e-05/0.3405, allocations: 25.03 kB / 437.7 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.744e-05/0.3406, allocations: 32.12 kB / 437.7 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/0.3421, allocations: 0.741 MB / 438.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.3421, allocations: 0 / 438.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.4e-05/0.3421, allocations: 12 kB / 438.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.3422, allocations: 8 kB / 438.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005668/0.3427, allocations: 215.8 kB / 438.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.3437, allocations: 0.7188 MB / 439.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/0.3448, allocations: 456.7 kB / 439.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004814/0.3453, allocations: 251.6 kB / 440.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004428/0.3457, allocations: 75.7 kB / 440.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.214e-05/0.3458, allocations: 38.56 kB / 440.2 MB, free: 13.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.315e-06/0.3458, allocations: 0 / 440.2 MB, free: 13.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.001299/0.3471, allocations: 0.5205 MB / 440.8 MB, free: 13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001951/0.3473, allocations: 216.3 kB / 441 MB, free: 12.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003197/0.3476, allocations: 245.9 kB / 441.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.531e-05/0.3476, allocations: 37.83 kB / 441.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001378/0.3478, allocations: 160.8 kB / 441.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.744e-05/0.3478, allocations: 47.72 kB / 441.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/0.3479, allocations: 82.19 kB / 441.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.3481, allocations: 346.8 kB / 441.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001921/0.3483, allocations: 84.94 kB / 442 MB, free: 11.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005179/0.3488, allocations: 434 kB / 442.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007247/0.3496, allocations: 0.5281 MB / 442.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/0.3496, allocations: 8 kB / 442.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000843/0.3504, allocations: 0.493 MB / 443.4 MB, free: 9.941 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/0.3504, allocations: 12.92 kB / 443.4 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.573e-05/0.3504, allocations: 12 kB / 443.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.443e-05/0.3505, allocations: 16 kB / 443.4 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003664/0.3508, allocations: 123.8 kB / 443.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.868e-05/0.3509, allocations: 23.92 kB / 443.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002773/0.3512, allocations: 51.72 kB / 443.6 MB, free: 9.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.343e-05/0.3512, allocations: 32 kB / 443.7 MB, free: 9.676 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 4 (PI.x,sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002396/0.3514, allocations: 191 kB / 443.9 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006568/0.3521, allocations: 354 kB / 444.2 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008452/0.3529, allocations: 352.8 kB / 444.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.358e-05/0.3529, allocations: 11.94 kB / 444.6 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.353, allocations: 0 / 444.6 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.353, allocations: 0 / 444.6 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005114/0.3535, allocations: 320.2 kB / 444.9 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/0.3535, allocations: 8 kB / 444.9 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004774/0.354, allocations: 95.88 kB / 445 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.301e-06/0.354, allocations: 4 kB / 445 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.962e-05/0.354, allocations: 15.94 kB / 445 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.076e-05/0.354, allocations: 7.984 kB / 445 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.354, allocations: 0 / 445 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001419/0.3554, allocations: 0.7708 MB / 445.8 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.02e-05/0.3555, allocations: 43.72 kB / 445.8 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.199e-05/0.3556, allocations: 20.06 kB / 445.8 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002477/0.3558, allocations: 23.97 kB / 445.9 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.281e-05/0.3559, allocations: 7.938 kB / 445.9 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.013e-05/0.3559, allocations: 15.98 kB / 445.9 MB, free: 7.375 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002109/0.3561, allocations: 181.2 kB / 446.1 MB, free: 7.199 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3561, allocations: 0 / 446.1 MB, free: 7.199 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00057/0.3567, allocations: 79.89 kB / 446.1 MB, free: 7.121 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 4 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3],PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001904/0.3586, allocations: 1.347 MB / 447.5 MB, free: 5.738 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007958/0.3594, allocations: 353.6 kB / 447.8 MB, free: 5.398 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3594, allocations: 3.938 kB / 447.8 MB, free: 5.395 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.412e-05/0.3595, allocations: 23.98 kB / 447.9 MB, free: 5.371 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/0.3606, allocations: 299.1 kB / 448.2 MB, free: 5.074 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005455/0.3661, allocations: 3.837 MB / 452 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005572/0.3666, allocations: 0.8081 MB / 452.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001475/0.3668, allocations: 39.27 kB / 452.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002047/0.367, allocations: 107.4 kB / 452.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of SimCode: time 1.353e-06/0.367, allocations: 0 / 452.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04115/0.4081, allocations: 8.556 MB / 461.5 MB, free: 7.453 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.23/12.64, allocations: 11.94 kB / 461.5 MB, free: 7.441 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects_fmu --startTime=0 --stopTime=5 --stepSize=0.0009802 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWith_AD_DA_Effects/ClockedWith_AD_DA_Effects.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.299475429113954]