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.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.00168/0.00168, allocations: 108.2 kB / 21.18 MB, free: 0.5508 MB / 14.72 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.002317/0.002317, allocations: 204.2 kB / 24.48 MB, free: 3.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.416/1.416, allocations: 207.6 MB / 235.3 MB, free: 9.988 MB / 190.1 MB " [Timeout remaining time 178] 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.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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001729/0.001729, allocations: 51.94 kB / 347.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2502/0.252, allocations: 49.16 MB / 396.3 MB, free: 8.992 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003128/0.2551, allocations: 2.447 MB / 398.8 MB, free: 7.305 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00167/0.2568, allocations: 1.024 MB / 399.8 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001661/0.2569, allocations: 7.844 kB / 399.8 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002241/0.2571, allocations: 49.59 kB / 399.9 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005167/0.2577, allocations: 160.2 kB / 400 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003923/0.2581, allocations: 190.2 kB / 400.2 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004815/0.2585, allocations: 470.8 kB / 400.7 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001648/0.2587, allocations: 69.03 kB / 400.7 MB, free: 6.125 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000307/0.259, allocations: 211.3 kB / 400.9 MB, free: 6.039 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003394/0.2593, allocations: 257.5 kB / 401.2 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.389e-05/0.2594, allocations: 38.47 kB / 401.2 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002506/0.2597, allocations: 126.2 kB / 401.4 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000151/0.2598, allocations: 108.3 kB / 401.5 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001658/0.26, allocations: 181.5 kB / 401.6 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006259/0.2606, allocations: 0.4934 MB / 402.1 MB, free: 5.551 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2606, allocations: 4 kB / 402.1 MB, free: 5.547 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2606, allocations: 1.094 kB / 402.1 MB, free: 5.547 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.2606, allocations: 0 / 402.1 MB, free: 5.547 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.001158/0.2618, allocations: 0.6097 MB / 402.7 MB, free: 5.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.2618, allocations: 12.95 kB / 402.8 MB, free: 5.105 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.503e-05/0.2619, allocations: 76.5 kB / 402.8 MB, free: 5.039 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003067/0.2622, allocations: 59.34 kB / 402.9 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004579/0.2627, allocations: 265.9 kB / 403.2 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001233/0.2628, allocations: 142.1 kB / 403.3 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.106e-05/0.2628, allocations: 29.12 kB / 403.3 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007275/0.2636, allocations: 416.9 kB / 403.7 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.712e-05/0.2636, allocations: 1.219 kB / 403.7 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.853e-05/0.2636, allocations: 18.25 kB / 403.7 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.2636, allocations: 8.188 kB / 403.8 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009587/0.2646, allocations: 470 kB / 404.2 MB, free: 4.363 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001615/0.2662, allocations: 0.9091 MB / 405.1 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007599/0.267, allocations: 388.5 kB / 405.5 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004168/0.2674, allocations: 212.9 kB / 405.7 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.911e-05/0.2674, allocations: 4.562 kB / 405.7 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.988e-05/0.2675, allocations: 42.72 kB / 405.8 MB, free: 3.594 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.934e-06/0.2675, allocations: 0 / 405.8 MB, free: 3.594 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.004864/0.2723, allocations: 1.928 MB / 407.7 MB, free: 2.742 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.2724, allocations: 87.59 kB / 407.8 MB, free: 2.645 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003178/0.2727, allocations: 261.7 kB / 408 MB, free: 2.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.085e-05/0.2727, allocations: 37.5 kB / 408.1 MB, free: 2.461 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.765e-05/0.2728, allocations: 130.8 kB / 408.2 MB, free: 2.348 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.2729, allocations: 196 kB / 408.4 MB, free: 2.191 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000142/0.273, allocations: 89.09 kB / 408.5 MB, free: 2.145 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.643e-05/0.2731, allocations: 343.2 kB / 408.8 MB, free: 1.816 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004139/0.2735, allocations: 201.3 kB / 409 MB, free: 1.75 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004317/0.274, allocations: 241.5 kB / 409.2 MB, free: 1.652 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007407/0.2747, allocations: 398.9 kB / 409.6 MB, free: 1.484 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2747, allocations: 0 / 409.6 MB, free: 1.484 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00119/0.2759, allocations: 0.6026 MB / 410.2 MB, free: 1.238 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.2759, allocations: 10.11 kB / 410.2 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.2759, allocations: 0 / 410.2 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007056/0.2766, allocations: 255.4 kB / 410.5 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002929/0.2769, allocations: 70.84 kB / 410.6 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003722/0.2806, allocations: 2.834 MB / 413.4 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003826/0.281, allocations: 29.03 kB / 413.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.725e-05/0.2811, allocations: 15.91 kB / 413.4 MB, free: 14.81 MB / 334.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.0002652/0.2813, allocations: 161.1 kB / 413.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.915e-05/0.2814, allocations: 32.09 kB / 413.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000112/0.2815, allocations: 48.31 kB / 413.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.2815, allocations: 5.438 kB / 413.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.2815, allocations: 5.062 kB / 413.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.2816, allocations: 7.922 kB / 413.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00237/0.2839, allocations: 1.223 MB / 414.9 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.2839, allocations: 1.312 kB / 414.9 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003318/0.2843, allocations: 66.95 kB / 415 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006649/0.2849, allocations: 237.7 kB / 415.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.27e-05/0.285, allocations: 19.33 kB / 415.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004042/0.289, allocations: 2.748 MB / 418 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.289, allocations: 0 / 418 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00191/0.2909, allocations: 0.9471 MB / 418.9 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002711/0.2912, allocations: 76.33 kB / 419 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.076e-05/0.2913, allocations: 15.78 kB / 419 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003073/0.2916, allocations: 29.22 kB / 419 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001848/0.2918, allocations: 73.8 kB / 419.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.661e-05/0.2918, allocations: 18.42 kB / 419.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002531/0.292, allocations: 194.8 kB / 419.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.292, allocations: 0 / 419.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006713/0.2927, allocations: 153.3 kB / 419.5 MB, free: 10.56 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.002647/0.2954, allocations: 1.542 MB / 421 MB, free: 9.445 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00176/0.2971, allocations: 0.6625 MB / 421.7 MB, free: 9.066 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.329e-06/0.2971, allocations: 0 / 421.7 MB, free: 9.066 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000995/0.2981, allocations: 474.2 kB / 422.1 MB, free: 8.758 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005538/0.2987, allocations: 43.17 kB / 422.2 MB, free: 8.727 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00672/0.3054, allocations: 3.805 MB / 426 MB, free: 4.93 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004783/0.3059, allocations: 0.7966 MB / 426.8 MB, free: 4.109 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002342/0.3061, allocations: 66.94 kB / 426.8 MB, free: 4.047 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001931/0.3063, allocations: 99.39 kB / 426.9 MB, free: 3.949 MB / 334.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3063, allocations: 0 / 426.9 MB, free: 3.949 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04395/0.3503, allocations: 11.48 MB / 438.4 MB, free: 8.406 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.12/13.47, allocations: 19.78 kB / 438.4 MB, free: 8.387 MB / 350.1 MB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_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_LossyGearDemo1.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable gear.mode in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv. Warning: Get data of variable gear.mode from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,Inertia2.phi,Inertia2.w,gear.mode Variables in the result:time,Inertia2.phi,Inertia2.w [Calling sys.exit(0), Time elapsed: 15.955635261998395]