Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.0009746/0.0009746, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 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.0009064/0.0009064, allocations: 174 kB / 24.92 MB, free: 8.766 MB / 18.57 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 0.9498/0.9498, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 3.938 kB / 273.4 MB, free: 1.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.522e-05/1.676e-05, allocations: 2.312 kB / 273.4 MB, free: 1.336 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002793/0.00281, allocations: 2.467 MB / 275.9 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.004092, allocations: 1.045 MB / 276.9 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.827e-05/0.00419, allocations: 7.938 kB / 277 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002333/0.004424, allocations: 63.44 kB / 277 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003143/0.004738, allocations: 158.9 kB / 277.2 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.004991, allocations: 175.6 kB / 277.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000354/0.005345, allocations: 482.5 kB / 277.8 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/0.005449, allocations: 46.86 kB / 277.9 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002161/0.005665, allocations: 275.5 kB / 278.1 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002108/0.005876, allocations: 207.5 kB / 278.3 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.26e-05/0.005919, allocations: 40 kB / 278.4 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001727/0.006091, allocations: 131.8 kB / 278.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.214e-05/0.006183, allocations: 115.6 kB / 278.6 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.725e-05/0.006271, allocations: 131.7 kB / 278.7 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003501/0.006621, allocations: 398.7 kB / 279.1 MB, free: 11.62 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.006622, allocations: 0 / 279.1 MB, free: 11.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.01e-07/0.006623, allocations: 0 / 279.1 MB, free: 11.62 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.006626, allocations: 0 / 279.1 MB, free: 11.62 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0006656/0.007292, allocations: 0.562 MB / 279.7 MB, free: 11.04 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.007325, allocations: 15.97 kB / 279.7 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001883/0.007513, allocations: 64.88 kB / 279.8 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002652/0.007778, allocations: 226.7 kB / 280 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.621e-05/0.007874, allocations: 140 kB / 280.1 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.055e-05/0.007915, allocations: 24.38 kB / 280.1 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003332/0.008248, allocations: 323.6 kB / 280.5 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.008259, allocations: 4.188 kB / 280.5 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.07e-05/0.00828, allocations: 12.12 kB / 280.5 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.008286, allocations: 8 kB / 280.5 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002276/0.008514, allocations: 179.2 kB / 280.7 MB, free: 9.977 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009946/0.009509, allocations: 0.8123 MB / 281.5 MB, free: 9.133 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002335/0.009742, allocations: 174.3 kB / 281.6 MB, free: 8.953 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.009843, allocations: 88.72 kB / 281.7 MB, free: 8.863 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.672e-05/0.009869, allocations: 8 kB / 281.7 MB, free: 8.855 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.009891, allocations: 38.56 kB / 281.8 MB, free: 8.809 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.222e-06/0.009892, allocations: 0 / 281.8 MB, free: 8.809 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001889/0.01178, allocations: 1.141 MB / 282.9 MB, free: 7.609 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/0.01182, allocations: 84.86 kB / 283 MB, free: 7.508 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001398/0.01196, allocations: 212.5 kB / 283.2 MB, free: 7.285 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.637e-05/0.01199, allocations: 37.7 kB / 283.2 MB, free: 7.242 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.658e-05/0.01205, allocations: 132.8 kB / 283.4 MB, free: 7.105 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.534e-05/0.01212, allocations: 154.7 kB / 283.5 MB, free: 6.953 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.541e-05/0.01221, allocations: 86.12 kB / 283.6 MB, free: 6.863 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.781e-05/0.01229, allocations: 334.8 kB / 283.9 MB, free: 6.527 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.404e-05/0.01238, allocations: 71.73 kB / 284 MB, free: 6.453 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.0125, allocations: 140.3 kB / 284.1 MB, free: 6.293 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001919/0.01269, allocations: 205.7 kB / 284.3 MB, free: 6.074 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.01269, allocations: 0 / 284.3 MB, free: 6.074 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0003346/0.01303, allocations: 294.1 kB / 284.6 MB, free: 5.773 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.01304, allocations: 4.125 kB / 284.6 MB, free: 5.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.01305, allocations: 8 kB / 284.6 MB, free: 5.762 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003638/0.01341, allocations: 213.2 kB / 284.9 MB, free: 5.551 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.01354, allocations: 51.91 kB / 284.9 MB, free: 5.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001646/0.01519, allocations: 2.032 MB / 286.9 MB, free: 3.383 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001058/0.01529, allocations: 23.98 kB / 287 MB, free: 3.359 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.285e-05/0.01532, allocations: 8 kB / 287 MB, free: 3.352 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 9.801e-05/0.01541, allocations: 140.5 kB / 287.1 MB, free: 3.203 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.748e-05/0.01546, allocations: 27.97 kB / 287.1 MB, free: 3.176 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.381e-05/0.01551, allocations: 42.98 kB / 287.2 MB, free: 3.133 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.01552, allocations: 8 kB / 287.2 MB, free: 3.125 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.01552, allocations: 3.938 kB / 287.2 MB, free: 3.121 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.01553, allocations: 4.031 kB / 287.2 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000757/0.01629, allocations: 0.5828 MB / 287.8 MB, free: 2.508 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.01629, allocations: 0 / 287.8 MB, free: 2.508 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/0.01641, allocations: 43.91 kB / 287.8 MB, free: 2.465 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003125/0.01672, allocations: 207.7 kB / 288 MB, free: 2.258 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.221e-05/0.01674, allocations: 19.92 kB / 288 MB, free: 2.238 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001573/0.01832, allocations: 2.01 MB / 290 MB, free: 148 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.01832, allocations: 0 / 290 MB, free: 148 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1144/0.1327, allocations: 442.7 kB / 290.5 MB, free: 24.45 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000134/0.1328, allocations: 47.19 kB / 290.5 MB, free: 24.45 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.91e-05/0.1329, allocations: 12.34 kB / 290.5 MB, free: 24.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001643/0.133, allocations: 16.56 kB / 290.6 MB, free: 24.45 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000184/0.1332, allocations: 63.5 kB / 290.6 MB, free: 24.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.46e-05/0.1333, allocations: 12.91 kB / 290.6 MB, free: 24.45 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001018/0.1334, allocations: 68.33 kB / 290.7 MB, free: 24.45 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1334, allocations: 0 / 290.7 MB, free: 24.45 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005093/0.1339, allocations: 136.6 kB / 290.8 MB, free: 24.45 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.000996/0.1349, allocations: 470.7 kB / 291.3 MB, free: 24.34 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006735/0.1355, allocations: 441.5 kB / 291.7 MB, free: 24.2 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/0.1355, allocations: 5.781 kB / 291.7 MB, free: 24.2 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003604/0.1359, allocations: 351.2 kB / 292.1 MB, free: 24.05 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002463/0.1361, allocations: 65.2 kB / 292.1 MB, free: 24.05 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009312/0.1371, allocations: 0.5818 MB / 292.7 MB, free: 23.78 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.054e-05/0.1372, allocations: 110.4 kB / 292.8 MB, free: 23.71 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001259/0.1373, allocations: 55.58 kB / 292.9 MB, free: 23.69 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001341/0.1374, allocations: 99.61 kB / 293 MB, free: 23.65 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.1374, allocations: 0 / 293 MB, free: 23.65 MB / 266.7 MB Notification: Performance of Templates: time 0.01039/0.1478, allocations: 7.701 MB / 300.7 MB, free: 21.78 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1287154918536544]