Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001783/0.001783, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001932/0.001932, allocations: 213.4 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.428/1.428, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 47.92 kB / 377.7 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2542/0.2557, allocations: 53.37 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004269/0.26, allocations: 2.408 MB / 433.5 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002166/0.2621, allocations: 1.096 MB / 434.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000142/0.2623, allocations: 7.938 kB / 434.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002784/0.2626, allocations: 55.5 kB / 434.6 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005351/0.2631, allocations: 183.1 kB / 434.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004268/0.2635, allocations: 183.6 kB / 435 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005555/0.2641, allocations: 0.5102 MB / 435.5 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001883/0.2643, allocations: 65.14 kB / 435.6 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003941/0.2647, allocations: 251.2 kB / 435.8 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004075/0.2651, allocations: 279.1 kB / 436.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.399e-05/0.2651, allocations: 44 kB / 436.1 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000289/0.2654, allocations: 139.9 kB / 436.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001621/0.2656, allocations: 115.7 kB / 436.4 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001797/0.2658, allocations: 171.3 kB / 436.5 MB, free: 1.141 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006963/0.2665, allocations: 0.5465 MB / 437.1 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.2665, allocations: 4 kB / 437.1 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2665, allocations: 4 kB / 437.1 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.236e-06/0.2665, allocations: 0 / 437.1 MB, free: 0.5859 MB / 334.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.001401/0.2679, allocations: 0.6374 MB / 437.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.2679, allocations: 12.03 kB / 437.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.567e-05/0.268, allocations: 70.72 kB / 437.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004248/0.2685, allocations: 68.67 kB / 437.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005925/0.2691, allocations: 255.2 kB / 438.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001843/0.2692, allocations: 144 kB / 438.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.859e-05/0.2693, allocations: 40.31 kB / 438.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008908/0.2702, allocations: 442.6 kB / 438.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/0.2702, allocations: 7.938 kB / 438.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.856e-05/0.2703, allocations: 11.98 kB / 438.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.2703, allocations: 12 kB / 438.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001048/0.2713, allocations: 466.2 kB / 439.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001894/0.2732, allocations: 0.8503 MB / 440.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008722/0.2741, allocations: 356.9 kB / 440.4 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004948/0.2746, allocations: 206.1 kB / 440.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.329e-05/0.2746, allocations: 4.625 kB / 440.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.068e-05/0.2747, allocations: 46.92 kB / 440.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.104e-06/0.2747, allocations: 0 / 440.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005453/0.2801, allocations: 1.917 MB / 442.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.969e-05/0.2802, allocations: 85.61 kB / 442.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003925/0.2806, allocations: 268.9 kB / 442.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.823e-05/0.2806, allocations: 37.7 kB / 443 MB, free: 10.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.2807, allocations: 141.2 kB / 443.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001731/0.2809, allocations: 206.3 kB / 443.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001585/0.2811, allocations: 90.17 kB / 443.4 MB, free: 10 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.2812, allocations: 338.8 kB / 443.7 MB, free: 9.664 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004615/0.2817, allocations: 196.9 kB / 443.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005289/0.2822, allocations: 265.7 kB / 444.2 MB, free: 9.199 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008697/0.2831, allocations: 383.3 kB / 444.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.2831, allocations: 4.031 kB / 444.6 MB, free: 8.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001374/0.2845, allocations: 0.5965 MB / 445.2 MB, free: 8.211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.2845, allocations: 7.938 kB / 445.2 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.2845, allocations: 3.938 kB / 445.2 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008466/0.2853, allocations: 306.5 kB / 445.5 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00032/0.2857, allocations: 71.89 kB / 445.5 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004311/0.29, allocations: 2.797 MB / 448.3 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003816/0.2904, allocations: 27.97 kB / 448.4 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.233e-05/0.2904, allocations: 20 kB / 448.4 MB, free: 4.871 MB / 350.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.0002703/0.2907, allocations: 165.8 kB / 448.6 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.752e-05/0.2908, allocations: 35.81 kB / 448.6 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001303/0.2909, allocations: 47.61 kB / 448.6 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.635e-06/0.2909, allocations: 7.984 kB / 448.6 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.2909, allocations: 4 kB / 448.6 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.2909, allocations: 3.984 kB / 448.6 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002438/0.2934, allocations: 1.179 MB / 449.8 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.2934, allocations: 3.938 kB / 449.8 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003389/0.2937, allocations: 71.88 kB / 449.9 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007736/0.2945, allocations: 284.6 kB / 450.2 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.455e-05/0.2945, allocations: 15.98 kB / 450.2 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004165/0.2987, allocations: 2.708 MB / 452.9 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2987, allocations: 0 / 452.9 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00215/0.3008, allocations: 0.9409 MB / 453.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002256/0.3011, allocations: 79.77 kB / 453.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.405e-05/0.3011, allocations: 19.92 kB / 453.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003114/0.3015, allocations: 27.97 kB / 454 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001881/0.3016, allocations: 76.42 kB / 454 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.078e-05/0.3017, allocations: 19.98 kB / 454.1 MB, free: 14.99 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003168/0.302, allocations: 204.5 kB / 454.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.302, allocations: 3.938 kB / 454.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006874/0.3027, allocations: 147.9 kB / 454.4 MB, free: 14.64 MB / 366.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.003815/0.3065, allocations: 1.805 MB / 456.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001508/0.308, allocations: 0.6635 MB / 456.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.308, allocations: 0 / 456.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008738/0.3089, allocations: 460.2 kB / 457.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004531/0.3093, allocations: 48.73 kB / 457.4 MB, free: 11.78 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006405/0.3157, allocations: 3.804 MB / 461.2 MB, free: 7.875 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002199/0.316, allocations: 194.8 kB / 461.4 MB, free: 7.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002594/0.3162, allocations: 82.91 kB / 461.4 MB, free: 7.574 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002102/0.3164, allocations: 107.4 kB / 461.6 MB, free: 7.473 MB / 366.1 MB Notification: Performance of SimCode: time 6.72e-07/0.3164, allocations: 3.938 kB / 461.6 MB, free: 7.469 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0459/0.3623, allocations: 11.7 MB / 473.3 MB, free: 11.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.37, allocations: 2.578 kB / 473.3 MB, free: 11.85 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv. Warning: Get data of variable gear.mode from file Modelica_4.1.0_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.945820383989485]