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.LossyGearDemo1.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.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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009046/0.0009047, allocations: 176.8 kB / 17.36 MB, free: 4.445 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.322/1.322, 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.0008051/0.0008052, allocations: 85.86 kB / 272.1 MB, free: 8.117 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003405/0.0003407, allocations: 8 kB / 329 MB, free: 15.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2842, allocations: 47.57 MB / 376.6 MB, free: 45.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002555/0.2869, allocations: 2.041 MB / 378.6 MB, free: 43.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001846/0.2887, allocations: 1.212 MB / 379.8 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000143/0.2889, allocations: 3.625 kB / 379.9 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001984/0.2891, allocations: 35.77 kB / 379.9 MB, free: 42.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004242/0.2895, allocations: 127.7 kB / 380 MB, free: 42.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002677/0.2898, allocations: 155 kB / 380.2 MB, free: 42.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003847/0.2902, allocations: 458.8 kB / 380.6 MB, free: 42.42 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001793/0.2904, allocations: 74.69 kB / 380.7 MB, free: 42.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002448/0.2906, allocations: 184.2 kB / 380.9 MB, free: 42.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002405/0.2909, allocations: 229.1 kB / 381.1 MB, free: 42.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.293e-05/0.291, allocations: 19.88 kB / 381.1 MB, free: 42.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001933/0.2912, allocations: 96.34 kB / 381.2 MB, free: 42.1 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001389/0.2913, allocations: 89.52 kB / 381.3 MB, free: 42.03 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001609/0.2915, allocations: 189.1 kB / 381.5 MB, free: 41.89 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004224/0.2919, allocations: 476.2 kB / 381.9 MB, free: 41.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.2919, allocations: 0 / 381.9 MB, free: 41.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.736e-06/0.2919, allocations: 1.312 kB / 381.9 MB, free: 41.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.2919, allocations: 0 / 381.9 MB, free: 41.55 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001082/0.293, allocations: 0.6126 MB / 382.6 MB, free: 41.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.2931, allocations: 8.875 kB / 382.6 MB, free: 41.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002829/0.2934, allocations: 58.16 kB / 382.6 MB, free: 41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003771/0.2937, allocations: 319.5 kB / 382.9 MB, free: 40.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001081/0.2939, allocations: 85.62 kB / 383 MB, free: 40.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.536e-05/0.2939, allocations: 41.16 kB / 383.1 MB, free: 40.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007545/0.2947, allocations: 424.1 kB / 383.5 MB, free: 40.35 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.2947, allocations: 1 kB / 383.5 MB, free: 40.35 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.777e-05/0.2948, allocations: 15.5 kB / 383.5 MB, free: 40.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.2948, allocations: 6.531 kB / 383.5 MB, free: 40.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009935/0.2958, allocations: 485.4 kB / 384 MB, free: 40.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001613/0.2974, allocations: 0.9922 MB / 385 MB, free: 39.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008083/0.2982, allocations: 404.7 kB / 385.4 MB, free: 39.19 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004538/0.2987, allocations: 238.9 kB / 385.6 MB, free: 39.08 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.526e-05/0.2988, allocations: 9.438 kB / 385.6 MB, free: 39.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.455e-05/0.2988, allocations: 36.78 kB / 385.6 MB, free: 39.03 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.853e-06/0.2988, allocations: 0.9688 kB / 385.6 MB, free: 39.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.004673/0.3035, allocations: 2.227 MB / 387.9 MB, free: 36.87 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.3035, allocations: 81.67 kB / 387.9 MB, free: 36.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002512/0.3038, allocations: 267 kB / 388.2 MB, free: 36.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.038e-05/0.3038, allocations: 33.7 kB / 388.2 MB, free: 36.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.574e-05/0.3039, allocations: 137.2 kB / 388.4 MB, free: 36.32 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.304, allocations: 189.3 kB / 388.6 MB, free: 36.13 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.401e-05/0.3041, allocations: 8 kB / 388.6 MB, free: 36.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.479e-05/0.3041, allocations: 342.8 kB / 388.9 MB, free: 35.78 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003746/0.3045, allocations: 197 kB / 389.1 MB, free: 35.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003854/0.3049, allocations: 252.6 kB / 389.3 MB, free: 35.33 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000681/0.3056, allocations: 408.3 kB / 389.7 MB, free: 34.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.3056, allocations: 0 / 389.7 MB, free: 34.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001046/0.3067, allocations: 0.6212 MB / 390.4 MB, free: 34.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.3067, allocations: 11.92 kB / 390.4 MB, free: 34.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.3067, allocations: 0 / 390.4 MB, free: 34.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007418/0.3075, allocations: 253.8 kB / 390.6 MB, free: 34.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002969/0.3078, allocations: 75.89 kB / 390.7 MB, free: 33.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003042/0.3108, allocations: 2.694 MB / 393.4 MB, free: 31.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002966/0.3111, allocations: 31.98 kB / 393.4 MB, free: 31.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.494e-05/0.3112, allocations: 19.98 kB / 393.4 MB, free: 31.09 MB / 298.7 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.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 (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.0002351/0.3114, allocations: 161.8 kB / 393.6 MB, free: 30.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.34e-05/0.3115, allocations: 35.61 kB / 393.6 MB, free: 30.89 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.984e-05/0.3116, allocations: 47.31 kB / 393.7 MB, free: 30.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.81e-06/0.3116, allocations: 11.94 kB / 393.7 MB, free: 30.83 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3116, allocations: 0 / 393.7 MB, free: 30.83 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.3116, allocations: 3.984 kB / 393.7 MB, free: 30.83 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001864/0.3135, allocations: 1.285 MB / 395 MB, free: 29.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3135, allocations: 0 / 395 MB, free: 29.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002868/0.3138, allocations: 67.89 kB / 395 MB, free: 29.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005428/0.3144, allocations: 244.7 kB / 395.3 MB, free: 29.17 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.448e-05/0.3144, allocations: 11.98 kB / 395.3 MB, free: 29.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002711/0.3171, allocations: 2.608 MB / 397.9 MB, free: 26.42 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3172, allocations: 0 / 397.9 MB, free: 26.42 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001443/0.3186, allocations: 0.969 MB / 398.9 MB, free: 25.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001409/0.3188, allocations: 156.6 kB / 399 MB, free: 25.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.557e-05/0.3188, allocations: 12 kB / 399 MB, free: 25.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002778/0.3191, allocations: 40.03 kB / 399.1 MB, free: 25.2 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.3193, allocations: 68.33 kB / 399.1 MB, free: 25.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.428e-05/0.3193, allocations: 19.98 kB / 399.2 MB, free: 25.12 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001701/0.3195, allocations: 192.5 kB / 399.3 MB, free: 24.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3195, allocations: 0 / 399.3 MB, free: 24.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005268/0.32, allocations: 156 kB / 399.5 MB, free: 24.78 MB / 298.7 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.0002164/0.3203, allocations: 147.2 kB / 399.6 MB, free: 24.62 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001174/0.3214, allocations: 0.7189 MB / 400.4 MB, free: 23.9 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3215, allocations: 0 / 400.4 MB, free: 23.9 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006423/0.3221, allocations: 475.8 kB / 400.8 MB, free: 23.42 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003946/0.3225, allocations: 47.17 kB / 400.9 MB, free: 23.38 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001215/0.3237, allocations: 0.9728 MB / 401.8 MB, free: 22.38 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001901/0.3239, allocations: 0.8047 MB / 402.6 MB, free: 21.55 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001942/0.3241, allocations: 62.95 kB / 402.7 MB, free: 21.48 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.737e-05/0.3242, allocations: 31.42 kB / 402.7 MB, free: 21.45 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3242, allocations: 0 / 402.7 MB, free: 21.45 MB / 298.7 MB Notification: Performance of Templates: time 0.01052/0.3348, allocations: 7.166 MB / 409.9 MB, free: 14.29 MB / 298.7 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","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches