Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008642/0.0008642, allocations: 76.08 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008518/0.0008518, allocations: 157 kB / 23.93 MB, free: 0.625 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8955/0.8955, allocations: 173.4 MB / 200.5 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.502e-06/1.502e-06, allocations: 0 / 318.4 MB, free: 6.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.193e-05/1.344e-05, allocations: 5.516 kB / 318.4 MB, free: 6.391 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00231/0.002324, allocations: 2.291 MB / 320.7 MB, free: 4.082 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001279/0.003602, allocations: 0.9284 MB / 321.6 MB, free: 3.148 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001399/0.003742, allocations: 7.938 kB / 321.6 MB, free: 3.141 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002272/0.00397, allocations: 51.52 kB / 321.7 MB, free: 3.09 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004049/0.004375, allocations: 174.8 kB / 321.9 MB, free: 2.918 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002438/0.004618, allocations: 183.6 kB / 322 MB, free: 2.738 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003387/0.004957, allocations: 490.3 kB / 322.5 MB, free: 2.258 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001281/0.005085, allocations: 61.12 kB / 322.6 MB, free: 2.191 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002628/0.005348, allocations: 287.4 kB / 322.9 MB, free: 1.91 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002365/0.005584, allocations: 207.5 kB / 323.1 MB, free: 1.707 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.672e-05/0.005631, allocations: 40 kB / 323.1 MB, free: 1.668 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001518/0.005783, allocations: 123.8 kB / 323.2 MB, free: 1.547 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.635e-05/0.005879, allocations: 107.7 kB / 323.3 MB, free: 1.441 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.246e-05/0.005972, allocations: 139.6 kB / 323.5 MB, free: 1.305 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004067/0.006378, allocations: 0.5258 MB / 324 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.684e-06/0.00638, allocations: 0 / 324 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.006381, allocations: 3.938 kB / 324 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.96e-06/0.006386, allocations: 0 / 324 MB, free: 0.7734 MB / 282.7 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.0007516/0.007137, allocations: 0.6019 MB / 324.6 MB, free: 148 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.007172, allocations: 16.91 kB / 324.6 MB, free: 132 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.196e-05/0.007224, allocations: 62.73 kB / 324.7 MB, free: 60 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001642/0.007388, allocations: 60.67 kB / 324.7 MB, free: 0 / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003658/0.007754, allocations: 253.1 kB / 325 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.242e-05/0.007846, allocations: 144 kB / 325.1 MB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.443e-05/0.007891, allocations: 40.33 kB / 325.2 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004752/0.008366, allocations: 435.2 kB / 325.6 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.008378, allocations: 192 / 325.6 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.529e-05/0.008404, allocations: 19.94 kB / 325.6 MB, free: 15.06 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.954e-06/0.008411, allocations: 8 kB / 325.6 MB, free: 15.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005657/0.008976, allocations: 466.2 kB / 326.1 MB, free: 14.6 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.009988, allocations: 0.8309 MB / 326.9 MB, free: 13.72 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005865/0.01057, allocations: 381.2 kB / 327.3 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002701/0.01084, allocations: 210.3 kB / 327.5 MB, free: 13.13 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.366e-05/0.01087, allocations: 8.5 kB / 327.5 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.956e-05/0.01089, allocations: 39 kB / 327.5 MB, free: 13.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.593e-06/0.01089, allocations: 0 / 327.5 MB, free: 13.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.00308/0.01397, allocations: 1.945 MB / 329.5 MB, free: 11.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.624e-05/0.01401, allocations: 85.61 kB / 329.6 MB, free: 10.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.01419, allocations: 263.2 kB / 329.8 MB, free: 10.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.924e-05/0.01422, allocations: 37.7 kB / 329.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.927e-05/0.01428, allocations: 133.2 kB / 330 MB, free: 10.53 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.4e-05/0.01437, allocations: 186.4 kB / 330.2 MB, free: 10.35 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.911e-05/0.01447, allocations: 94.12 kB / 330.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.03e-05/0.01455, allocations: 338.8 kB / 330.6 MB, free: 9.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002583/0.01481, allocations: 200.8 kB / 330.8 MB, free: 9.715 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003098/0.01512, allocations: 273.7 kB / 331 MB, free: 9.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004866/0.01561, allocations: 391.5 kB / 331.4 MB, free: 9.043 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.01561, allocations: 0 / 331.4 MB, free: 9.043 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0007151/0.01632, allocations: 0.5926 MB / 332 MB, free: 8.441 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.01634, allocations: 4 kB / 332 MB, free: 8.438 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.01634, allocations: 4.031 kB / 332 MB, free: 8.434 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004439/0.01679, allocations: 266.5 kB / 332.3 MB, free: 8.172 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.01694, allocations: 63.89 kB / 332.4 MB, free: 8.109 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002415/0.01935, allocations: 2.786 MB / 335.1 MB, free: 5.211 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001494/0.0195, allocations: 40.06 kB / 335.2 MB, free: 5.172 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.907e-05/0.01953, allocations: 19.98 kB / 335.2 MB, free: 5.152 MB / 298.7 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.000121/0.01965, allocations: 164.7 kB / 335.4 MB, free: 4.984 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.504e-05/0.0197, allocations: 35.75 kB / 335.4 MB, free: 4.949 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.839e-05/0.01975, allocations: 47.3 kB / 335.4 MB, free: 4.902 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.01975, allocations: 4 kB / 335.4 MB, free: 4.898 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.335e-06/0.01975, allocations: 0 / 335.4 MB, free: 4.898 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.01976, allocations: 7.984 kB / 335.4 MB, free: 4.891 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00154/0.0213, allocations: 1.161 MB / 336.6 MB, free: 3.676 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.0213, allocations: 0 / 336.6 MB, free: 3.676 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001643/0.02146, allocations: 63.95 kB / 336.7 MB, free: 3.613 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003653/0.02183, allocations: 253.2 kB / 336.9 MB, free: 3.363 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.611e-05/0.02186, allocations: 15.98 kB / 336.9 MB, free: 3.348 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002221/0.02408, allocations: 2.688 MB / 339.6 MB, free: 0.543 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.02408, allocations: 3.938 kB / 339.6 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.02515, allocations: 0.9453 MB / 340.6 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.02525, allocations: 79.8 kB / 340.7 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.174e-05/0.02529, allocations: 12 kB / 340.7 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001439/0.02543, allocations: 27.97 kB / 340.7 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.02555, allocations: 76.3 kB / 340.8 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.936e-05/0.02557, allocations: 12 kB / 340.8 MB, free: 15.36 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000133/0.0257, allocations: 196.6 kB / 341 MB, free: 15.17 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0257, allocations: 0 / 341 MB, free: 15.17 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003637/0.02607, allocations: 151.9 kB / 341.1 MB, free: 15.02 MB / 314.7 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.001517/0.02758, allocations: 1.551 MB / 342.7 MB, free: 13.44 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008171/0.0284, allocations: 0.6834 MB / 343.4 MB, free: 12.74 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.0284, allocations: 0 / 343.4 MB, free: 12.74 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004531/0.02886, allocations: 460.5 kB / 343.8 MB, free: 12.28 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.02913, allocations: 59.39 kB / 343.9 MB, free: 12.22 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003723/0.03285, allocations: 3.775 MB / 347.6 MB, free: 8.344 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001434/0.03299, allocations: 190.9 kB / 347.8 MB, free: 8.137 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000124/0.03312, allocations: 62.94 kB / 347.9 MB, free: 8.074 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.03324, allocations: 100.5 kB / 348 MB, free: 7.977 MB / 314.7 MB Notification: Performance of SimCode: time 7.61e-07/0.03324, allocations: 3.938 kB / 348 MB, free: 7.973 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02332/0.05656, allocations: 11.01 MB / 359 MB, free: 13.15 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.048/8.105, allocations: 3.266 kB / 359 MB, free: 13.15 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv. Warning: Get data of variable gear.mode from file Modelica_4.0.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: 9.855305743403733]