Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001589/0.001589, allocations: 113.4 kB / 17.73 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001748/0.001748, allocations: 184.1 kB / 18.66 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.376/1.376, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 56.34 kB / 328.5 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.109, allocations: 46.61 MB / 375.1 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003682/0.1127, allocations: 2.424 MB / 377.6 MB, free: 2.168 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001938/0.1147, allocations: 1.015 MB / 378.6 MB, free: 1.145 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001398/0.1149, allocations: 4 kB / 378.6 MB, free: 1.141 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002216/0.1151, allocations: 47.52 kB / 378.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005001/0.1156, allocations: 167 kB / 378.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003291/0.116, allocations: 179.7 kB / 379 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004485/0.1164, allocations: 474.5 kB / 379.4 MB, free: 296 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000199/0.1166, allocations: 92.91 kB / 379.5 MB, free: 200 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2567/0.3734, allocations: 204.4 kB / 379.7 MB, free: 9.898 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007451/0.3741, allocations: 246.9 kB / 379.9 MB, free: 9.895 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001315/0.3743, allocations: 37.16 kB / 380 MB, free: 9.895 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003268/0.3746, allocations: 123.8 kB / 380.1 MB, free: 9.895 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001605/0.3748, allocations: 108.9 kB / 380.2 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002008/0.375, allocations: 185.8 kB / 380.4 MB, free: 9.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008303/0.3758, allocations: 0.4963 MB / 380.9 MB, free: 9.785 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3759, allocations: 2.25 kB / 380.9 MB, free: 9.785 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3759, allocations: 0 / 380.9 MB, free: 9.785 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.343e-05/0.3759, allocations: 0 / 380.9 MB, free: 9.785 MB / 318.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.001314/0.3772, allocations: 0.6639 MB / 381.6 MB, free: 9.332 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.3773, allocations: 10.19 kB / 381.6 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003336/0.3776, allocations: 52.8 kB / 381.6 MB, free: 9.316 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005596/0.3782, allocations: 321.7 kB / 381.9 MB, free: 9.086 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001441/0.3783, allocations: 92.84 kB / 382 MB, free: 9.023 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.938e-05/0.3784, allocations: 31.53 kB / 382.1 MB, free: 9.023 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.3795, allocations: 416.9 kB / 382.5 MB, free: 8.961 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.415e-05/0.3795, allocations: 4.906 kB / 382.5 MB, free: 8.957 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.107e-05/0.3796, allocations: 23.45 kB / 382.5 MB, free: 8.953 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.176e-05/0.3796, allocations: 7.938 kB / 382.5 MB, free: 8.953 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001222/0.3808, allocations: 471.7 kB / 383 MB, free: 8.949 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001786/0.3826, allocations: 0.9694 MB / 383.9 MB, free: 8.609 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008671/0.3835, allocations: 409.2 kB / 384.3 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004674/0.384, allocations: 234.7 kB / 384.6 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.817e-05/0.384, allocations: 10.2 kB / 384.6 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.3841, allocations: 36.75 kB / 384.6 MB, free: 8.531 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.673e-06/0.3841, allocations: 0.5 kB / 384.6 MB, free: 8.531 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.005449/0.3895, allocations: 2.168 MB / 386.8 MB, free: 7.508 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.239e-05/0.3896, allocations: 84.11 kB / 386.9 MB, free: 7.414 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003762/0.39, allocations: 258.1 kB / 387.1 MB, free: 7.273 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.61e-05/0.39, allocations: 40.55 kB / 387.1 MB, free: 7.23 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.501e-05/0.3901, allocations: 134.5 kB / 387.3 MB, free: 7.109 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001577/0.3903, allocations: 182 kB / 387.5 MB, free: 6.969 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001716/0.3905, allocations: 90.28 kB / 387.5 MB, free: 6.922 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.3906, allocations: 339.5 kB / 387.9 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004981/0.3911, allocations: 198.8 kB / 388.1 MB, free: 6.535 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005453/0.3917, allocations: 245.1 kB / 388.3 MB, free: 6.434 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009405/0.3926, allocations: 395.9 kB / 388.7 MB, free: 6.273 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3926, allocations: 0 / 388.7 MB, free: 6.273 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001543/0.3942, allocations: 0.6202 MB / 389.3 MB, free: 6.016 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.555e-05/0.3942, allocations: 5.406 kB / 389.3 MB, free: 6.016 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.3942, allocations: 6.594 kB / 389.3 MB, free: 6.012 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008342/0.3951, allocations: 259.5 kB / 389.6 MB, free: 5.938 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003366/0.3954, allocations: 62.12 kB / 389.6 MB, free: 5.938 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004365/0.3998, allocations: 2.928 MB / 392.6 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003588/0.4002, allocations: 34 kB / 392.6 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.025e-05/0.4002, allocations: 18.34 kB / 392.6 MB, free: 3.738 MB / 318.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.0002549/0.4005, allocations: 157.8 kB / 392.8 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.447e-05/0.4006, allocations: 34.84 kB / 392.8 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.4007, allocations: 48.16 kB / 392.9 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.4007, allocations: 5.062 kB / 392.9 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.4007, allocations: 3.719 kB / 392.9 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.4007, allocations: 2.859 kB / 392.9 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002193/0.4029, allocations: 1.264 MB / 394.1 MB, free: 2.875 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.403, allocations: 0 / 394.1 MB, free: 2.875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003241/0.4033, allocations: 68.12 kB / 394.2 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006692/0.404, allocations: 249.5 kB / 394.4 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.132e-05/0.404, allocations: 14.91 kB / 394.5 MB, free: 2.789 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003551/0.4076, allocations: 2.844 MB / 397.3 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.4076, allocations: 2.625 kB / 397.3 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001774/0.4094, allocations: 0.9569 MB / 398.3 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001631/0.4095, allocations: 149.5 kB / 398.4 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.367e-05/0.4096, allocations: 13.38 kB / 398.4 MB, free: 48 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003113/0.4099, allocations: 32.05 kB / 398.4 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001958/0.4101, allocations: 69.75 kB / 398.5 MB, free: 24 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4e-05/0.4102, allocations: 17.72 kB / 398.5 MB, free: 20 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002821/0.4105, allocations: 202.6 kB / 398.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4105, allocations: 0 / 398.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007305/0.4112, allocations: 153.7 kB / 398.9 MB, free: 15.89 MB / 334.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.0002564/0.4115, allocations: 140.5 kB / 399 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001606/0.4131, allocations: 0.7058 MB / 399.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4131, allocations: 0 / 399.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009079/0.414, allocations: 485.1 kB / 400.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004716/0.4145, allocations: 45.12 kB / 400.2 MB, free: 15.19 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/0.4163, allocations: 0.7867 MB / 401 MB, free: 14.74 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004515/0.4167, allocations: 0.7972 MB / 401.8 MB, free: 14.04 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002378/0.417, allocations: 61.98 kB / 401.9 MB, free: 14.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.4171, allocations: 34 kB / 401.9 MB, free: 14.01 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4171, allocations: 0 / 401.9 MB, free: 14.01 MB / 334.1 MB Notification: Performance of Templates: time 0.01583/0.4329, allocations: 7.873 MB / 409.8 MB, free: 10.85 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches