Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 114.4 kB / 17.73 MB, free: 5.359 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.001127/0.001127, allocations: 187.1 kB / 18.66 MB, free: 4.438 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.284/1.284, 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.001138/0.001138, allocations: 43.94 kB / 328 MB, free: 3.836 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08491/0.08605, allocations: 46.62 MB / 374.6 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003619/0.08971, allocations: 2.735 MB / 377.4 MB, free: 2.359 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001893/0.09163, allocations: 1.132 MB / 378.5 MB, free: 1.219 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001507/0.09179, allocations: 4 kB / 378.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002429/0.09206, allocations: 71.36 kB / 378.6 MB, free: 1.145 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005454/0.09261, allocations: 190.8 kB / 378.8 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004009/0.09302, allocations: 243.6 kB / 379 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005455/0.09358, allocations: 0.6468 MB / 379.6 MB, free: 72 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1701/0.2637, allocations: 122.1 kB / 379.8 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007169/0.2644, allocations: 289.2 kB / 380 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004698/0.2649, allocations: 342.1 kB / 380.4 MB, free: 9.266 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001007/0.265, allocations: 52 kB / 380.4 MB, free: 9.266 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003281/0.2654, allocations: 144.4 kB / 380.6 MB, free: 9.266 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001837/0.2655, allocations: 148.6 kB / 380.7 MB, free: 9.246 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002485/0.2658, allocations: 247.1 kB / 381 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007312/0.2665, allocations: 0.6456 MB / 381.6 MB, free: 9.113 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2666, allocations: 1.578 kB / 381.6 MB, free: 9.113 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2666, allocations: 2.125 kB / 381.6 MB, free: 9.113 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.822e-05/0.2666, allocations: 0 / 381.6 MB, free: 9.113 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.00166/0.2683, allocations: 0.7972 MB / 382.4 MB, free: 8.621 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/0.2683, allocations: 13.23 kB / 382.4 MB, free: 8.617 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001139/0.2684, allocations: 77.45 kB / 382.5 MB, free: 8.578 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003706/0.2688, allocations: 72.48 kB / 382.6 MB, free: 8.551 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006071/0.2694, allocations: 365.7 kB / 382.9 MB, free: 8.316 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001133/0.2696, allocations: 98 kB / 383 MB, free: 8.254 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.179e-05/0.2697, allocations: 41.81 kB / 383.1 MB, free: 8.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/0.2708, allocations: 0.562 MB / 383.6 MB, free: 8.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.39e-05/0.2708, allocations: 2.922 kB / 383.6 MB, free: 8.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.189e-05/0.2709, allocations: 15.81 kB / 383.6 MB, free: 8.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.2709, allocations: 10.28 kB / 383.6 MB, free: 8.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001318/0.2722, allocations: 0.6372 MB / 384.3 MB, free: 8.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002336/0.2745, allocations: 1.288 MB / 385.6 MB, free: 7.785 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.2757, allocations: 0.5424 MB / 386.1 MB, free: 7.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005945/0.2763, allocations: 329.3 kB / 386.4 MB, free: 7.469 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.248e-05/0.2763, allocations: 12.66 kB / 386.4 MB, free: 7.465 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.043e-05/0.2763, allocations: 38.33 kB / 386.5 MB, free: 7.422 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.275e-06/0.2764, allocations: 0 / 386.5 MB, free: 7.422 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.006453/0.2828, allocations: 2.867 MB / 389.3 MB, free: 6.023 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.758e-05/0.2829, allocations: 90.38 kB / 389.4 MB, free: 5.926 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004006/0.2833, allocations: 326.9 kB / 389.8 MB, free: 5.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.573e-05/0.2834, allocations: 44.47 kB / 389.8 MB, free: 5.727 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.268e-05/0.2834, allocations: 168 kB / 390 MB, free: 5.582 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001323/0.2836, allocations: 219.6 kB / 390.2 MB, free: 5.418 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000191/0.2838, allocations: 122.9 kB / 390.3 MB, free: 5.355 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.547e-05/0.2839, allocations: 351.3 kB / 390.6 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005664/0.2844, allocations: 290.4 kB / 390.9 MB, free: 4.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006039/0.285, allocations: 350.9 kB / 391.3 MB, free: 4.793 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001012/0.2861, allocations: 0.5285 MB / 391.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.2861, allocations: 4.188 kB / 391.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001619/0.2877, allocations: 0.8738 MB / 392.7 MB, free: 4.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.2877, allocations: 14.97 kB / 392.7 MB, free: 4.242 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.2877, allocations: 4 kB / 392.7 MB, free: 4.242 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009816/0.2887, allocations: 476.2 kB / 393.2 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003601/0.2891, allocations: 80.39 kB / 393.2 MB, free: 4.117 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001188/0.2903, allocations: 1.074 MB / 394.3 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004699/0.2908, allocations: 60.28 kB / 394.4 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.597e-05/0.2908, allocations: 26.06 kB / 394.4 MB, free: 3.363 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,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 (46): * Single equations (assignments): 45 * 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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002251/0.2911, allocations: 192.7 kB / 394.6 MB, free: 3.199 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.764e-05/0.2912, allocations: 42.88 kB / 394.6 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001417/0.2913, allocations: 71.59 kB / 394.7 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.2913, allocations: 8.828 kB / 394.7 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.806e-06/0.2914, allocations: 0 / 394.7 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.2914, allocations: 3.656 kB / 394.7 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003092/0.2945, allocations: 1.752 MB / 396.5 MB, free: 2.285 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.2945, allocations: 0.8125 kB / 396.5 MB, free: 2.285 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003611/0.2949, allocations: 83.17 kB / 396.5 MB, free: 2.277 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009293/0.2958, allocations: 454.2 kB / 397 MB, free: 2.156 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.339e-05/0.2959, allocations: 22.28 kB / 397 MB, free: 2.145 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001054/0.2969, allocations: 1.034 MB / 398 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.2969, allocations: 2.312 kB / 398 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002489/0.2994, allocations: 1.316 MB / 399.4 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002604/0.2997, allocations: 174.5 kB / 399.5 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.689e-05/0.2998, allocations: 19.11 kB / 399.5 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004596/0.3003, allocations: 49.98 kB / 399.6 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002267/0.3005, allocations: 88.78 kB / 399.7 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.105e-05/0.3006, allocations: 32.3 kB / 399.7 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002991/0.3009, allocations: 245.3 kB / 400 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.122e-06/0.3009, allocations: 1.125 kB / 400 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006221/0.3015, allocations: 148.1 kB / 400.1 MB, free: 0.5078 MB / 318.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: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003085/0.3046, allocations: 1.889 MB / 402 MB, free: 15.42 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00166/0.3063, allocations: 0.7156 MB / 402.7 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.3063, allocations: 0 / 402.7 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008823/0.3072, allocations: 389.2 kB / 403.1 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005609/0.3078, allocations: 48.86 kB / 403.1 MB, free: 15.06 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008912/0.3167, allocations: 4.995 MB / 408.1 MB, free: 12.26 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000412/0.3171, allocations: 0.8241 MB / 409 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002353/0.3174, allocations: 61.83 kB / 409 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002313/0.3176, allocations: 136.1 kB / 409.1 MB, free: 11.37 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3176, allocations: 0 / 409.1 MB, free: 11.37 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03958/0.3572, allocations: 13.77 MB / 422.9 MB, free: 14.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/12.48, allocations: 8 kB / 422.9 MB, free: 14.16 MB / 350.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[1016]=0.500000 File[642028]=0.063596 Error: Could not read variable bearingFriction.mode in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.mode from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startBackward in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startBackward from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startForward in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startForward from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable gear.mode in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable gear.mode from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! " Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:time,Inertia2.phi,Inertia2.w