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.001362/0.001362, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001488/0.001488, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.438/1.438, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.001536/0.001536, allocations: 47.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1134, allocations: 53.32 MB / 426.3 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004354/0.1178, allocations: 2.557 MB / 428.9 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002279/0.1201, allocations: 1.139 MB / 430 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001921/0.1203, allocations: 7.938 kB / 430 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003225/0.1206, allocations: 63.48 kB / 430.1 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005971/0.1212, allocations: 187.4 kB / 430.2 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004722/0.1217, allocations: 171.7 kB / 430.4 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006445/0.1223, allocations: 0.5141 MB / 430.9 MB, free: 132 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001861/0.1225, allocations: 64.94 kB / 431 MB, free: 64 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2054/0.3279, allocations: 244 kB / 431.2 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004903/0.3284, allocations: 281.3 kB / 431.5 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.431e-05/0.3284, allocations: 42.31 kB / 431.5 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003373/0.3288, allocations: 137.1 kB / 431.7 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001331/0.3289, allocations: 117.4 kB / 431.8 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001808/0.3291, allocations: 201.1 kB / 432 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006937/0.3298, allocations: 0.554 MB / 432.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3298, allocations: 0 / 432.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3298, allocations: 1.281 kB / 432.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.3298, allocations: 0 / 432.5 MB, free: 7.543 MB / 350.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.001242/0.331, allocations: 0.709 MB / 433.3 MB, free: 7.062 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.3311, allocations: 10.28 kB / 433.3 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.04e-05/0.3312, allocations: 67.75 kB / 433.3 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003873/0.3315, allocations: 66.7 kB / 433.4 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004813/0.332, allocations: 326.1 kB / 433.7 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001131/0.3321, allocations: 94.42 kB / 433.8 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.569e-05/0.3322, allocations: 33.42 kB / 433.8 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007896/0.333, allocations: 419.3 kB / 434.3 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.333, allocations: 1.031 kB / 434.3 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.23e-05/0.3331, allocations: 13.03 kB / 434.3 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-06/0.3331, allocations: 8.656 kB / 434.3 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/0.3341, allocations: 472.9 kB / 434.7 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001822/0.3359, allocations: 0.9867 MB / 435.7 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008582/0.3368, allocations: 367.6 kB / 436.1 MB, free: 6.281 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004838/0.3373, allocations: 208.5 kB / 436.3 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.778e-05/0.3373, allocations: 5.031 kB / 436.3 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.174e-05/0.3373, allocations: 39.84 kB / 436.3 MB, free: 6.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.635e-06/0.3373, allocations: 0 / 436.3 MB, free: 6.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005464/0.3428, allocations: 2.147 MB / 438.5 MB, free: 5.434 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.4e-05/0.3428, allocations: 84.61 kB / 438.6 MB, free: 5.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003516/0.3432, allocations: 269.4 kB / 438.8 MB, free: 5.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.505e-05/0.3432, allocations: 41.92 kB / 438.9 MB, free: 5.137 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.809e-05/0.3433, allocations: 149.2 kB / 439 MB, free: 5.004 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.3434, allocations: 189.3 kB / 439.2 MB, free: 4.859 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/0.3436, allocations: 92.25 kB / 439.3 MB, free: 4.812 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.254e-05/0.3437, allocations: 340.1 kB / 439.6 MB, free: 4.488 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004575/0.3441, allocations: 190.8 kB / 439.8 MB, free: 4.426 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005/0.3446, allocations: 251.9 kB / 440 MB, free: 4.316 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008763/0.3455, allocations: 379.9 kB / 440.4 MB, free: 4.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3455, allocations: 0 / 440.4 MB, free: 4.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001459/0.347, allocations: 0.6007 MB / 441 MB, free: 3.914 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.347, allocations: 10.66 kB / 441 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.347, allocations: 0 / 441 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008912/0.3479, allocations: 304 kB / 441.3 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003433/0.3482, allocations: 65.92 kB / 441.4 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003724/0.352, allocations: 2.947 MB / 444.3 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004656/0.3524, allocations: 33.05 kB / 444.4 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.211e-05/0.3525, allocations: 21.84 kB / 444.4 MB, free: 1.625 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.0002924/0.3528, allocations: 157.6 kB / 444.5 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/0.3529, allocations: 36.78 kB / 444.6 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001363/0.3531, allocations: 47.52 kB / 444.6 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/0.3531, allocations: 8.766 kB / 444.6 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.3531, allocations: 0 / 444.6 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.3531, allocations: 4.219 kB / 444.6 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002431/0.3555, allocations: 1.285 MB / 445.9 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.3555, allocations: 1.25 kB / 445.9 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003503/0.3559, allocations: 66.23 kB / 446 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007885/0.3567, allocations: 288.5 kB / 446.3 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.919e-05/0.3567, allocations: 16.86 kB / 446.3 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004237/0.361, allocations: 2.861 MB / 449.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.361, allocations: 6.656 kB / 449.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002192/0.3631, allocations: 0.9444 MB / 450.1 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002627/0.3634, allocations: 155.5 kB / 450.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.556e-05/0.3635, allocations: 20.27 kB / 450.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003273/0.3638, allocations: 22.69 kB / 450.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002359/0.364, allocations: 74.11 kB / 450.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.701e-05/0.3641, allocations: 23.91 kB / 450.4 MB, free: 13.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003169/0.3644, allocations: 199.5 kB / 450.6 MB, free: 13.78 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3644, allocations: 0 / 450.6 MB, free: 13.78 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008366/0.3652, allocations: 151.4 kB / 450.7 MB, free: 13.75 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.004039/0.3693, allocations: 1.779 MB / 452.5 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001721/0.371, allocations: 0.6604 MB / 453.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.371, allocations: 7.281 kB / 453.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009898/0.372, allocations: 460.2 kB / 453.6 MB, free: 12.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000582/0.3726, allocations: 51.53 kB / 453.7 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007223/0.3798, allocations: 3.81 MB / 457.5 MB, free: 9.852 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005285/0.3803, allocations: 0.7966 MB / 458.3 MB, free: 9.145 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003325/0.3807, allocations: 87.89 kB / 458.4 MB, free: 9.117 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000258/0.3809, allocations: 108.2 kB / 458.5 MB, free: 9.047 MB / 366.1 MB Notification: Performance of SimCode: time 1.352e-06/0.3809, allocations: 0 / 458.5 MB, free: 9.047 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04796/0.4289, allocations: 11.74 MB / 470.2 MB, free: 3.637 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.45/12.88, allocations: 10.92 kB / 470.2 MB, free: 3.629 MB / 366.1 MB " [Timeout remaining time 647] (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.421129834998283]