Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001662/0.001662, allocations: 77.7 kB / 21.25 MB, free: 0.5469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001848/0.001848, allocations: 161.3 kB / 24.5 MB, free: 3.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 177.1 MB / 204.7 MB, free: 8.973 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002036/0.002036, allocations: 58.58 kB / 325.5 MB, free: 192 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09807/0.1001, allocations: 53.38 MB / 378.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004782/0.1049, allocations: 2.41 MB / 381.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002695/0.1076, allocations: 1.084 MB / 382.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002966/0.1079, allocations: 7.938 kB / 382.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004105/0.1083, allocations: 63.42 kB / 382.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008135/0.1091, allocations: 183.1 kB / 382.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005792/0.1097, allocations: 183.5 kB / 382.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007995/0.1105, allocations: 0.5219 MB / 383.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002023/0.1107, allocations: 65.06 kB / 383.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006081/0.1113, allocations: 231.4 kB / 383.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000484/0.1118, allocations: 255.1 kB / 383.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.412e-05/0.1119, allocations: 44 kB / 383.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003432/0.1122, allocations: 131.9 kB / 384.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002008/0.1124, allocations: 123.6 kB / 384.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002395/0.1126, allocations: 167.3 kB / 384.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001052/0.1137, allocations: 0.5604 MB / 384.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.1137, allocations: 0 / 384.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.1137, allocations: 4 kB / 384.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.174e-05/0.1137, allocations: 0 / 384.9 MB, free: 9.457 MB / 350.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.001543/0.1153, allocations: 0.6297 MB / 385.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/0.1153, allocations: 19.98 kB / 385.6 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004097/0.1157, allocations: 64.61 kB / 385.6 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000567/0.1163, allocations: 254.6 kB / 385.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001876/0.1165, allocations: 152 kB / 386 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.014e-05/0.1165, allocations: 36.27 kB / 386.1 MB, free: 8.234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009107/0.1175, allocations: 446.8 kB / 386.5 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.1175, allocations: 0 / 386.5 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.892e-05/0.1175, allocations: 16 kB / 386.5 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.1175, allocations: 8 kB / 386.5 MB, free: 7.754 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.1186, allocations: 466.2 kB / 387 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001779/0.1204, allocations: 0.7962 MB / 387.8 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009278/0.1213, allocations: 367.3 kB / 388.1 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004999/0.1218, allocations: 206.2 kB / 388.3 MB, free: 5.902 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.125e-05/0.1219, allocations: 8.5 kB / 388.3 MB, free: 5.895 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.248e-05/0.1219, allocations: 35.06 kB / 388.4 MB, free: 5.852 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.044e-06/0.1219, allocations: 0 / 388.4 MB, free: 5.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005743/0.1276, allocations: 1.926 MB / 390.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.492e-05/0.1277, allocations: 85.59 kB / 390.4 MB, free: 3.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003798/0.1281, allocations: 247.8 kB / 390.6 MB, free: 3.516 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.392e-05/0.1282, allocations: 37.7 kB / 390.7 MB, free: 3.473 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.1283, allocations: 149 kB / 390.8 MB, free: 3.324 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001832/0.1285, allocations: 194.4 kB / 391 MB, free: 3.133 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002219/0.1287, allocations: 90.17 kB / 391.1 MB, free: 3.039 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002451/0.1289, allocations: 342.8 kB / 391.4 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005734/0.1295, allocations: 188.9 kB / 391.6 MB, free: 2.512 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005655/0.1301, allocations: 269.7 kB / 391.9 MB, free: 2.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009127/0.131, allocations: 383.6 kB / 392.2 MB, free: 1.852 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.131, allocations: 0 / 392.2 MB, free: 1.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001399/0.1324, allocations: 0.5965 MB / 392.8 MB, free: 1.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.1324, allocations: 8 kB / 392.8 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.1324, allocations: 0 / 392.8 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009511/0.1334, allocations: 302.5 kB / 393.1 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003317/0.1337, allocations: 75.88 kB / 393.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004491/0.1382, allocations: 2.756 MB / 396 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003537/0.1385, allocations: 35.94 kB / 396 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.143e-05/0.1386, allocations: 19.98 kB / 396 MB, free: 13.95 MB / 366.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.0002266/0.1388, allocations: 165.8 kB / 396.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.928e-05/0.1389, allocations: 39.7 kB / 396.2 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001171/0.139, allocations: 47.31 kB / 396.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.139, allocations: 4 kB / 396.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.1391, allocations: 7.984 kB / 396.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.1391, allocations: 0 / 396.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002408/0.1415, allocations: 1.123 MB / 397.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/0.1415, allocations: 4 kB / 397.4 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003689/0.1418, allocations: 71.88 kB / 397.5 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007888/0.1426, allocations: 285.2 kB / 397.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.469e-05/0.1427, allocations: 19.98 kB / 397.8 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004232/0.1469, allocations: 2.684 MB / 400.5 MB, free: 9.363 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.1469, allocations: 0 / 400.5 MB, free: 9.363 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00203/0.1489, allocations: 0.941 MB / 401.4 MB, free: 8.398 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002079/0.1491, allocations: 79.77 kB / 401.5 MB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.925e-05/0.1492, allocations: 15.98 kB / 401.5 MB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003296/0.1495, allocations: 28.09 kB / 401.5 MB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002073/0.1498, allocations: 80.3 kB / 401.6 MB, free: 8.199 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.65e-05/0.1498, allocations: 23.92 kB / 401.6 MB, free: 8.176 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002567/0.1501, allocations: 185.5 kB / 401.8 MB, free: 7.996 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1501, allocations: 0 / 401.8 MB, free: 7.996 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006914/0.1508, allocations: 147.9 kB / 401.9 MB, free: 7.852 MB / 366.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.001479/0.1522, allocations: 393.6 kB / 402.3 MB, free: 7.578 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001637/0.1539, allocations: 0.6601 MB / 403 MB, free: 6.902 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.1539, allocations: 4 kB / 403 MB, free: 6.898 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009466/0.1548, allocations: 460.4 kB / 403.4 MB, free: 6.438 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004604/0.1553, allocations: 51.47 kB / 403.5 MB, free: 6.391 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001732/0.157, allocations: 0.8246 MB / 404.3 MB, free: 5.535 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002185/0.1572, allocations: 198.8 kB / 404.5 MB, free: 5.316 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002478/0.1575, allocations: 74.89 kB / 404.6 MB, free: 5.242 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002182/0.1577, allocations: 40.47 kB / 404.6 MB, free: 5.203 MB / 366.1 MB Notification: Performance of SimCode: time 9.62e-07/0.1577, allocations: 0 / 404.6 MB, free: 5.203 MB / 366.1 MB Notification: Performance of Templates: time 0.01716/0.1749, allocations: 7.517 MB / 412.1 MB, free: 13.73 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.641292155021802]