Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 73.72 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001786/0.001786, allocations: 152.1 kB / 24.49 MB, free: 3.727 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 173.4 MB / 201.1 MB, free: 12.69 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 46.58 kB / 319.4 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08543/0.08699, allocations: 52.16 MB / 371.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00384/0.09083, allocations: 2.301 MB / 373.9 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001893/0.09272, allocations: 0.9209 MB / 374.8 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001676/0.09289, allocations: 4 kB / 374.8 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002224/0.09311, allocations: 51.5 kB / 374.8 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005733/0.09368, allocations: 163 kB / 375 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004245/0.09411, allocations: 187.6 kB / 375.2 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005624/0.09467, allocations: 478.4 kB / 375.6 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001681/0.09484, allocations: 57.14 kB / 375.7 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002839/0.09512, allocations: 215.3 kB / 375.9 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003286/0.09545, allocations: 227.2 kB / 376.1 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.28e-05/0.09552, allocations: 40 kB / 376.2 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002411/0.09576, allocations: 119.9 kB / 376.3 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001542/0.09592, allocations: 111.6 kB / 376.4 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000175/0.09609, allocations: 155.3 kB / 376.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005934/0.09669, allocations: 0.502 MB / 377.1 MB, free: 1.824 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.09669, allocations: 4 kB / 377.1 MB, free: 1.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.09669, allocations: 0 / 377.1 MB, free: 1.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.323e-05/0.09671, allocations: 4 kB / 377.1 MB, free: 1.816 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001256/0.09796, allocations: 0.6026 MB / 377.7 MB, free: 1.184 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.098, allocations: 12.92 kB / 377.7 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003148/0.09831, allocations: 52.69 kB / 377.7 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005102/0.09882, allocations: 265.8 kB / 378 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001627/0.09898, allocations: 140 kB / 378.1 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.612e-05/0.09905, allocations: 28.38 kB / 378.2 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008586/0.09991, allocations: 442.7 kB / 378.6 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.076e-05/0.09993, allocations: 11.95 kB / 378.6 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.835e-05/0.09997, allocations: 12 kB / 378.6 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.09998, allocations: 8 kB / 378.6 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001038/0.101, allocations: 462.3 kB / 379.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00165/0.1027, allocations: 0.7806 MB / 379.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008606/0.1035, allocations: 381.4 kB / 380.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004894/0.104, allocations: 210.2 kB / 380.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.585e-05/0.1041, allocations: 4.5 kB / 380.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.8e-05/0.1041, allocations: 39.06 kB / 380.5 MB, free: 14.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.174e-06/0.1041, allocations: 7.938 kB / 380.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005368/0.1095, allocations: 1.945 MB / 382.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.836e-05/0.1095, allocations: 81.61 kB / 382.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003144/0.1098, allocations: 237 kB / 382.7 MB, free: 11.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.605e-05/0.1099, allocations: 41.7 kB / 382.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.11, allocations: 141.1 kB / 382.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001678/0.1102, allocations: 186.4 kB / 383.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000163/0.1103, allocations: 90.17 kB / 383.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.1105, allocations: 338.8 kB / 383.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004729/0.1109, allocations: 192.9 kB / 383.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005347/0.1115, allocations: 273.6 kB / 384 MB, free: 10.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008792/0.1124, allocations: 391.6 kB / 384.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.1124, allocations: 4 kB / 384.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001293/0.1137, allocations: 0.6004 MB / 385 MB, free: 9.637 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.1137, allocations: 10.81 kB / 385 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.1137, allocations: 0 / 385 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000772/0.1145, allocations: 258.5 kB / 385.2 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003163/0.1148, allocations: 63.89 kB / 385.3 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00411/0.1189, allocations: 2.767 MB / 388 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002996/0.1192, allocations: 32 kB / 388.1 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-05/0.1192, allocations: 16 kB / 388.1 MB, free: 6.395 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002297/0.1195, allocations: 161.8 kB / 388.3 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.451e-05/0.1196, allocations: 35.75 kB / 388.3 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000102/0.1197, allocations: 51.3 kB / 388.3 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.73e-06/0.1197, allocations: 7.938 kB / 388.3 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1197, allocations: 0 / 388.3 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.1197, allocations: 0 / 388.3 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002375/0.122, allocations: 1.115 MB / 389.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.122, allocations: 0 / 389.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000344/0.1224, allocations: 67.89 kB / 389.5 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006735/0.1231, allocations: 232.7 kB / 389.8 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.514e-05/0.1231, allocations: 15.98 kB / 389.8 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004175/0.1273, allocations: 2.681 MB / 392.4 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.1273, allocations: 0 / 392.4 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001968/0.1293, allocations: 0.9452 MB / 393.4 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001958/0.1295, allocations: 71.78 kB / 393.5 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.282e-05/0.1295, allocations: 12 kB / 393.5 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003155/0.1298, allocations: 24.09 kB / 393.5 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001838/0.13, allocations: 84.3 kB / 393.6 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.396e-05/0.1301, allocations: 19.92 kB / 393.6 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002372/0.1303, allocations: 183 kB / 393.8 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1303, allocations: 0 / 393.8 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006546/0.1309, allocations: 159.9 kB / 393.9 MB, free: 388 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000264/0.1312, allocations: 139.1 kB / 394.1 MB, free: 236 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001539/0.1328, allocations: 0.6718 MB / 394.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.1328, allocations: 4 kB / 394.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009/0.1337, allocations: 460.5 kB / 395.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004778/0.1341, allocations: 35.98 kB / 395.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.1358, allocations: 0.8129 MB / 396 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002292/0.136, allocations: 194.8 kB / 396.2 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002055/0.1362, allocations: 58.95 kB / 396.3 MB, free: 13.94 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001024/0.1364, allocations: 28.48 kB / 396.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of SimCode: time 7.02e-07/0.1364, allocations: 0 / 396.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of Templates: time 0.01417/0.1505, allocations: 7.042 MB / 403.4 MB, free: 6.926 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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: 4.516320117982104]