Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0012/0.0012, allocations: 174 kB / 17.36 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.463/1.463, allocations: 205.6 MB / 223.7 MB, free: 8.938 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007661/0.0007664, allocations: 82.53 kB / 272.1 MB, free: 8.121 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002432/0.0002433, allocations: 8 kB / 329 MB, free: 15.06 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.2725, allocations: 47.58 MB / 376.6 MB, free: 45.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002361/0.2749, allocations: 1.962 MB / 378.6 MB, free: 44.03 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001561/0.2765, allocations: 1.165 MB / 379.7 MB, free: 43.01 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001221/0.2766, allocations: 3.438 kB / 379.7 MB, free: 43.01 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001995/0.2768, allocations: 31.39 kB / 379.8 MB, free: 42.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004005/0.2773, allocations: 116.6 kB / 379.9 MB, free: 42.9 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002659/0.2775, allocations: 161.9 kB / 380 MB, free: 42.78 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003747/0.2779, allocations: 398.4 kB / 380.4 MB, free: 42.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001528/0.2781, allocations: 52.84 kB / 380.5 MB, free: 42.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001779/0.2783, allocations: 170.2 kB / 380.6 MB, free: 42.44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000261/0.2785, allocations: 202.5 kB / 380.8 MB, free: 42.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.574e-05/0.2786, allocations: 16.56 kB / 380.9 MB, free: 42.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001869/0.2788, allocations: 86 kB / 380.9 MB, free: 42.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.2789, allocations: 80.16 kB / 381 MB, free: 42.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001636/0.2791, allocations: 171.9 kB / 381.2 MB, free: 42.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004206/0.2795, allocations: 420.7 kB / 381.6 MB, free: 41.81 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.2795, allocations: 0 / 381.6 MB, free: 41.81 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2795, allocations: 1.375 kB / 381.6 MB, free: 41.81 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.2795, allocations: 0 / 381.6 MB, free: 41.81 MB / 298.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.0009606/0.2805, allocations: 0.5894 MB / 382.2 MB, free: 41.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.2806, allocations: 9.281 kB / 382.2 MB, free: 41.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002883/0.2808, allocations: 43.58 kB / 382.2 MB, free: 41.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00036/0.2812, allocations: 303.8 kB / 382.5 MB, free: 40.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.2813, allocations: 90.27 kB / 382.6 MB, free: 40.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.234e-05/0.2814, allocations: 24.84 kB / 382.6 MB, free: 40.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006448/0.2821, allocations: 390.4 kB / 383 MB, free: 40.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.2821, allocations: 7.844 kB / 383 MB, free: 40.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.23e-05/0.2821, allocations: 10.72 kB / 383 MB, free: 40.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.2821, allocations: 6.75 kB / 383.1 MB, free: 40.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000842/0.283, allocations: 426 kB / 383.5 MB, free: 40.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001852/0.2848, allocations: 1.246 MB / 384.7 MB, free: 39.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006925/0.2856, allocations: 355.7 kB / 385.1 MB, free: 39.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003661/0.2859, allocations: 191.8 kB / 385.2 MB, free: 39.2 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.261e-05/0.286, allocations: 8.766 kB / 385.3 MB, free: 39.2 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.286, allocations: 37.41 kB / 385.3 MB, free: 39.15 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.563e-06/0.286, allocations: 0 / 385.3 MB, free: 39.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.004178/0.2902, allocations: 1.96 MB / 387.3 MB, free: 37.44 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.968e-05/0.2902, allocations: 88.8 kB / 387.3 MB, free: 37.33 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000214/0.2905, allocations: 244.6 kB / 387.6 MB, free: 37.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.856e-05/0.2905, allocations: 37.7 kB / 387.6 MB, free: 37.04 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.957e-05/0.2906, allocations: 132.7 kB / 387.7 MB, free: 36.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.093e-05/0.2907, allocations: 154 kB / 387.9 MB, free: 36.76 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.18e-05/0.2907, allocations: 11.94 kB / 387.9 MB, free: 36.75 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.88e-05/0.2908, allocations: 334.8 kB / 388.2 MB, free: 36.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002958/0.2911, allocations: 168.8 kB / 388.4 MB, free: 36.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003418/0.2914, allocations: 233.9 kB / 388.6 MB, free: 36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005404/0.292, allocations: 351.2 kB / 389 MB, free: 35.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.292, allocations: 0 / 389 MB, free: 35.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008774/0.2929, allocations: 0.5676 MB / 389.5 MB, free: 35.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.2929, allocations: 4 kB / 389.5 MB, free: 35.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.2929, allocations: 4 kB / 389.5 MB, free: 35.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006294/0.2935, allocations: 240.7 kB / 389.8 MB, free: 34.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002156/0.2938, allocations: 63.89 kB / 389.8 MB, free: 34.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002939/0.2967, allocations: 2.657 MB / 392.5 MB, free: 31.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002329/0.297, allocations: 31.97 kB / 392.5 MB, free: 31.94 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.901e-05/0.297, allocations: 19.98 kB / 392.6 MB, free: 31.92 MB / 298.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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * 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 0.0001458/0.2972, allocations: 158.4 kB / 392.7 MB, free: 31.76 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.706e-05/0.2972, allocations: 31.56 kB / 392.7 MB, free: 31.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.71e-05/0.2973, allocations: 42.94 kB / 392.8 MB, free: 31.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.2973, allocations: 7.984 kB / 392.8 MB, free: 31.68 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.2973, allocations: 0 / 392.8 MB, free: 31.68 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.2973, allocations: 4 kB / 392.8 MB, free: 31.67 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001456/0.2988, allocations: 1.097 MB / 393.9 MB, free: 30.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2988, allocations: 0 / 393.9 MB, free: 30.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001957/0.299, allocations: 47.91 kB / 393.9 MB, free: 30.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005661/0.2996, allocations: 236.9 kB / 394.2 MB, free: 30.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.001e-05/0.2996, allocations: 15.98 kB / 394.2 MB, free: 30.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002818/0.3025, allocations: 2.597 MB / 396.8 MB, free: 27.49 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3025, allocations: 0 / 396.8 MB, free: 27.49 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.3037, allocations: 0.8297 MB / 397.6 MB, free: 26.64 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/0.3039, allocations: 136.8 kB / 397.7 MB, free: 26.49 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.473e-05/0.3039, allocations: 12 kB / 397.8 MB, free: 26.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002266/0.3042, allocations: 27.97 kB / 397.8 MB, free: 26.45 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.3043, allocations: 55.91 kB / 397.8 MB, free: 26.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-05/0.3043, allocations: 24.05 kB / 397.9 MB, free: 26.37 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001539/0.3045, allocations: 176.3 kB / 398 MB, free: 26.2 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.81e-07/0.3045, allocations: 0 / 398 MB, free: 26.2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004866/0.305, allocations: 143.9 kB / 398.2 MB, free: 26.06 MB / 298.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.0002056/0.3052, allocations: 145.3 kB / 398.3 MB, free: 25.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001/0.3062, allocations: 0.6291 MB / 398.9 MB, free: 25.26 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3062, allocations: 0 / 398.9 MB, free: 25.26 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005646/0.3068, allocations: 437.5 kB / 399.4 MB, free: 24.82 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003622/0.3072, allocations: 39.86 kB / 399.4 MB, free: 24.78 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001124/0.3083, allocations: 0.8649 MB / 400.3 MB, free: 23.9 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002065/0.3085, allocations: 0.7803 MB / 401.1 MB, free: 23.09 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001706/0.3087, allocations: 58.94 kB / 401.1 MB, free: 23.03 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.422e-05/0.3088, allocations: 31.42 kB / 401.1 MB, free: 23 MB / 298.7 MB Notification: Performance of SimCode: time 7.72e-07/0.3088, allocations: 0 / 401.1 MB, free: 23 MB / 298.7 MB Notification: Performance of Templates: time 0.009792/0.3186, allocations: 6.557 MB / 407.7 MB, free: 16.45 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches