Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001433/0.001433, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001479/0.001479, allocations: 215 kB / 24.47 MB, free: 3.777 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.383/1.383, allocations: 207.7 MB / 235.3 MB, free: 9.801 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.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",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.001868/0.001868, allocations: 54.58 kB / 347.2 MB, free: 9.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2477, allocations: 49.15 MB / 396.3 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003186/0.2508, allocations: 2.219 MB / 398.6 MB, free: 7.398 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001526/0.2524, allocations: 0.9295 MB / 399.5 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001567/0.2525, allocations: 4.094 kB / 399.5 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001814/0.2527, allocations: 47.83 kB / 399.5 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004354/0.2531, allocations: 140.3 kB / 399.7 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003426/0.2535, allocations: 173 kB / 399.8 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003628/0.2538, allocations: 423 kB / 400.3 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.254, allocations: 52 kB / 400.3 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001837/0.2542, allocations: 183.7 kB / 400.5 MB, free: 6.297 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002677/0.2544, allocations: 211.8 kB / 400.7 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.04e-05/0.2545, allocations: 35.72 kB / 400.7 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002106/0.2547, allocations: 119.9 kB / 400.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.2548, allocations: 94.03 kB / 400.9 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001274/0.2549, allocations: 141 kB / 401.1 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004701/0.2554, allocations: 453.7 kB / 401.5 MB, free: 5.895 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.2554, allocations: 0 / 401.5 MB, free: 5.895 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.2554, allocations: 1.094 kB / 401.5 MB, free: 5.895 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.2554, allocations: 3.938 kB / 401.5 MB, free: 5.891 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0009517/0.2564, allocations: 0.5668 MB / 402.1 MB, free: 5.473 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.2564, allocations: 14.55 kB / 402.1 MB, free: 5.469 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.219e-05/0.2565, allocations: 67.05 kB / 402.2 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002814/0.2567, allocations: 50.25 kB / 402.2 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004289/0.2572, allocations: 248.3 kB / 402.5 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001131/0.2573, allocations: 141.3 kB / 402.6 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.482e-05/0.2573, allocations: 26.64 kB / 402.6 MB, free: 5.059 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006459/0.258, allocations: 412.9 kB / 403 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.258, allocations: 1.094 kB / 403 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.14e-05/0.258, allocations: 10.31 kB / 403 MB, free: 4.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-06/0.258, allocations: 6.781 kB / 403 MB, free: 4.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007828/0.2588, allocations: 406.2 kB / 403.4 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001797/0.2606, allocations: 1.116 MB / 404.6 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006021/0.2612, allocations: 333.5 kB / 404.9 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003497/0.2616, allocations: 171.9 kB / 405.1 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.126e-05/0.2616, allocations: 5.438 kB / 405.1 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.029e-05/0.2616, allocations: 38.75 kB / 405.1 MB, free: 3.797 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.854e-06/0.2616, allocations: 0 / 405.1 MB, free: 3.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004224/0.2659, allocations: 1.681 MB / 406.8 MB, free: 3.039 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.903e-05/0.2659, allocations: 87.06 kB / 406.9 MB, free: 2.941 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002427/0.2661, allocations: 246.2 kB / 407.1 MB, free: 2.797 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.168e-05/0.2662, allocations: 33.25 kB / 407.1 MB, free: 2.762 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.765e-05/0.2662, allocations: 140.3 kB / 407.3 MB, free: 2.637 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.561e-05/0.2663, allocations: 156.7 kB / 407.4 MB, free: 2.516 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.2664, allocations: 79.95 kB / 407.5 MB, free: 2.473 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.322e-05/0.2665, allocations: 338 kB / 407.8 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003376/0.2668, allocations: 165 kB / 408 MB, free: 2.094 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003738/0.2672, allocations: 257.4 kB / 408.2 MB, free: 1.949 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006149/0.2678, allocations: 348.8 kB / 408.6 MB, free: 1.785 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2678, allocations: 1.156 kB / 408.6 MB, free: 1.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001001/0.2688, allocations: 0.5505 MB / 409.1 MB, free: 1.555 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.2688, allocations: 4.688 kB / 409.1 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.2688, allocations: 1.312 kB / 409.1 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006992/0.2695, allocations: 248.5 kB / 409.4 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002365/0.2698, allocations: 55.39 kB / 409.4 MB, free: 1.477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003595/0.2734, allocations: 2.747 MB / 412.2 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002658/0.2736, allocations: 28.34 kB / 412.2 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.399e-05/0.2737, allocations: 16.16 kB / 412.2 MB, free: 15.39 MB / 334.1 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.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 (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.0002226/0.2739, allocations: 156.1 kB / 412.4 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.817e-05/0.274, allocations: 23.86 kB / 412.4 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.591e-05/0.2741, allocations: 39.62 kB / 412.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.2741, allocations: 5.469 kB / 412.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.2741, allocations: 7.984 kB / 412.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.2741, allocations: 0 / 412.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001891/0.276, allocations: 1.002 MB / 413.5 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.276, allocations: 1.188 kB / 413.5 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002207/0.2762, allocations: 51.59 kB / 413.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006632/0.2769, allocations: 239 kB / 413.7 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.805e-05/0.2769, allocations: 19.27 kB / 413.8 MB, free: 14.37 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003807/0.2807, allocations: 2.689 MB / 416.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2807, allocations: 0 / 416.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001516/0.2822, allocations: 0.8164 MB / 417.3 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001622/0.2824, allocations: 62.17 kB / 417.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.565e-05/0.2824, allocations: 15.53 kB / 417.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000252/0.2827, allocations: 26.48 kB / 417.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.2828, allocations: 58.72 kB / 417.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.301e-05/0.2829, allocations: 17.2 kB / 417.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002135/0.2831, allocations: 178.5 kB / 417.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2831, allocations: 1.156 kB / 417.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006209/0.2837, allocations: 145.5 kB / 417.8 MB, free: 11.46 MB / 334.1 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.002055/0.2857, allocations: 1.416 MB / 419.2 MB, free: 10.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00125/0.287, allocations: 0.6009 MB / 419.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.287, allocations: 5.094 kB / 419.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007137/0.2877, allocations: 407.1 kB / 420.2 MB, free: 9.789 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000401/0.2881, allocations: 39.5 kB / 420.2 MB, free: 9.762 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005345/0.2935, allocations: 3.429 MB / 423.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001985/0.2937, allocations: 171.8 kB / 423.8 MB, free: 6.828 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001934/0.2939, allocations: 62.94 kB / 423.9 MB, free: 6.766 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002054/0.2941, allocations: 83.39 kB / 424 MB, free: 6.684 MB / 334.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2941, allocations: 0 / 424 MB, free: 6.684 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05065/0.3447, allocations: 9.771 MB / 433.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.15/13.49, allocations: 11.86 kB / 433.7 MB, free: 12.84 MB / 350.1 MB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3_res.csv. Warning: Get data of variable gear.mode from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.900348667055368]