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.001637/0.001637, allocations: 103.6 kB / 21.18 MB, free: 332 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.001474/0.001474, allocations: 210.9 kB / 24.47 MB, free: 3.547 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.421/1.421, 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.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.002864/0.002864, allocations: 55.92 kB / 347.2 MB, free: 9.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2543, allocations: 49.16 MB / 396.3 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003208/0.2576, allocations: 2.291 MB / 398.6 MB, free: 7.355 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001672/0.2592, allocations: 0.9741 MB / 399.6 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001882/0.2594, allocations: 4.062 kB / 399.6 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002262/0.2596, allocations: 50.08 kB / 399.7 MB, free: 6.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000551/0.2602, allocations: 167.7 kB / 399.8 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003741/0.2606, allocations: 177.6 kB / 400 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004411/0.261, allocations: 476.6 kB / 400.5 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001509/0.2612, allocations: 60.53 kB / 400.5 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002916/0.2615, allocations: 216.3 kB / 400.7 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003223/0.2618, allocations: 226.5 kB / 401 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.796e-05/0.2618, allocations: 36.88 kB / 401 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002328/0.2621, allocations: 121.4 kB / 401.1 MB, free: 6.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001311/0.2622, allocations: 116.5 kB / 401.2 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000151/0.2624, allocations: 157.9 kB / 401.4 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005499/0.2629, allocations: 0.4895 MB / 401.9 MB, free: 5.715 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2629, allocations: 4 kB / 401.9 MB, free: 5.711 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2629, allocations: 4 kB / 401.9 MB, free: 5.707 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.315e-05/0.2629, allocations: 0 / 401.9 MB, free: 5.707 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.001172/0.2641, allocations: 0.599 MB / 402.5 MB, free: 5.281 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.2641, allocations: 17.7 kB / 402.5 MB, free: 5.273 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.606e-05/0.2642, allocations: 72.06 kB / 402.6 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002865/0.2645, allocations: 55.81 kB / 402.6 MB, free: 5.191 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004532/0.2649, allocations: 267.5 kB / 402.9 MB, free: 4.988 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001176/0.2651, allocations: 141.9 kB / 403 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.628e-05/0.2651, allocations: 35.42 kB / 403.1 MB, free: 4.836 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007496/0.2659, allocations: 436.9 kB / 403.5 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.2659, allocations: 4.516 kB / 403.5 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.596e-05/0.2659, allocations: 22.86 kB / 403.5 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.2659, allocations: 7.312 kB / 403.5 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000963/0.2669, allocations: 462.5 kB / 404 MB, free: 4.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001618/0.2685, allocations: 0.8347 MB / 404.8 MB, free: 4.023 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007837/0.2693, allocations: 392.8 kB / 405.2 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004348/0.2697, allocations: 207.9 kB / 405.4 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.457e-05/0.2698, allocations: 5.438 kB / 405.4 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.776e-05/0.2698, allocations: 39.44 kB / 405.4 MB, free: 3.758 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.964e-06/0.2698, allocations: 0 / 405.4 MB, free: 3.758 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.004861/0.2747, allocations: 1.928 MB / 407.4 MB, free: 2.902 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.136e-05/0.2747, allocations: 85.17 kB / 407.4 MB, free: 2.809 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002788/0.275, allocations: 256.9 kB / 407.7 MB, free: 2.668 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.673e-05/0.275, allocations: 37.06 kB / 407.7 MB, free: 2.629 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.784e-05/0.2751, allocations: 138.5 kB / 407.9 MB, free: 2.508 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001137/0.2752, allocations: 197.9 kB / 408.1 MB, free: 2.352 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/0.2753, allocations: 88.3 kB / 408.1 MB, free: 2.305 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.845e-05/0.2754, allocations: 338.9 kB / 408.5 MB, free: 1.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004347/0.2758, allocations: 198.5 kB / 408.7 MB, free: 1.918 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004634/0.2763, allocations: 266 kB / 408.9 MB, free: 1.789 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007881/0.2771, allocations: 397.2 kB / 409.3 MB, free: 1.625 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2771, allocations: 0 / 409.3 MB, free: 1.625 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001205/0.2783, allocations: 0.6015 MB / 409.9 MB, free: 1.379 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.2783, allocations: 9.875 kB / 409.9 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.2783, allocations: 4.594 kB / 409.9 MB, free: 1.371 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007304/0.279, allocations: 255.6 kB / 410.2 MB, free: 1.293 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000295/0.2793, allocations: 71.42 kB / 410.2 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003748/0.2831, allocations: 2.788 MB / 413 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003193/0.2834, allocations: 25.73 kB / 413.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.716e-05/0.2835, allocations: 20.27 kB / 413.1 MB, free: 15.02 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.0002363/0.2837, allocations: 162.2 kB / 413.2 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.417e-05/0.2838, allocations: 38.77 kB / 413.3 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001156/0.2839, allocations: 52.92 kB / 413.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.2839, allocations: 4.969 kB / 413.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.2839, allocations: 1.031 kB / 413.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.2839, allocations: 3.984 kB / 413.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00241/0.2863, allocations: 1.158 MB / 414.5 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.2863, allocations: 0 / 414.5 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003158/0.2866, allocations: 68.55 kB / 414.6 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006771/0.2873, allocations: 235.8 kB / 414.8 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.169e-05/0.2874, allocations: 18.98 kB / 414.8 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004143/0.2915, allocations: 2.718 MB / 417.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.2915, allocations: 1.375 kB / 417.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001957/0.2935, allocations: 0.9433 MB / 418.5 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001898/0.2936, allocations: 72.3 kB / 418.5 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.62e-05/0.2937, allocations: 16.84 kB / 418.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003074/0.294, allocations: 33.34 kB / 418.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001621/0.2942, allocations: 74.55 kB / 418.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.58e-05/0.2942, allocations: 18.11 kB / 418.7 MB, free: 11.01 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000244/0.2945, allocations: 198.2 kB / 418.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2945, allocations: 3.938 kB / 418.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006532/0.2951, allocations: 153.3 kB / 419 MB, free: 10.85 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.002562/0.2977, allocations: 1.537 MB / 420.6 MB, free: 9.746 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001476/0.2992, allocations: 0.6696 MB / 421.2 MB, free: 9.359 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2992, allocations: 5.281 kB / 421.2 MB, free: 9.355 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008549/0.3, allocations: 461.5 kB / 421.7 MB, free: 9.059 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004401/0.3004, allocations: 38.64 kB / 421.7 MB, free: 9.035 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00651/0.307, allocations: 3.808 MB / 425.5 MB, free: 5.141 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002558/0.3072, allocations: 198.7 kB / 425.7 MB, free: 4.93 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002212/0.3074, allocations: 62.95 kB / 425.8 MB, free: 4.871 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002769/0.3077, allocations: 99.39 kB / 425.9 MB, free: 4.777 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3077, allocations: 0 / 425.9 MB, free: 4.777 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04541/0.3531, allocations: 10.86 MB / 436.8 MB, free: 9.848 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.25/13.6, allocations: 3.938 kB / 436.8 MB, free: 9.844 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: 16.036915556993335]