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.00096/0.00096, allocations: 83.64 kB / 21.43 MB, free: 3.137 MB / 18.57 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.003909/0.003909, allocations: 160.8 kB / 24.69 MB, free: 9.418 MB / 18.57 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 0.8334/0.8334, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 298.4 MB, free: 3.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.231e-05/1.401e-05, allocations: 6.281 kB / 298.4 MB, free: 3.527 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003407/0.003421, allocations: 2.295 MB / 300.7 MB, free: 1.211 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001857/0.005278, allocations: 0.9722 MB / 301.7 MB, free: 236 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001347/0.005412, allocations: 4 kB / 301.7 MB, free: 232 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002046/0.005617, allocations: 55.44 kB / 301.7 MB, free: 176 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004873/0.006104, allocations: 159 kB / 301.9 MB, free: 16 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1322/0.1383, allocations: 177.8 kB / 302.1 MB, free: 13.24 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004246/0.1387, allocations: 487.2 kB / 302.6 MB, free: 13.17 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.1389, allocations: 56.3 kB / 302.6 MB, free: 13.17 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002712/0.1391, allocations: 296.6 kB / 302.9 MB, free: 13.15 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002147/0.1394, allocations: 208.8 kB / 303.1 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.476e-05/0.1394, allocations: 37.12 kB / 303.1 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001775/0.1396, allocations: 118.7 kB / 303.3 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.956e-05/0.1397, allocations: 108.3 kB / 303.4 MB, free: 13.12 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001024/0.1398, allocations: 135.3 kB / 303.5 MB, free: 13.11 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004741/0.1403, allocations: 0.5327 MB / 304 MB, free: 13.08 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.1403, allocations: 3.906 kB / 304 MB, free: 13.08 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1403, allocations: 0.6562 kB / 304 MB, free: 13.08 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.1403, allocations: 0 / 304 MB, free: 13.08 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.000784/0.1411, allocations: 0.6036 MB / 304.6 MB, free: 12.7 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.1411, allocations: 15.5 kB / 304.6 MB, free: 12.7 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.368e-05/0.1411, allocations: 70.19 kB / 304.7 MB, free: 12.66 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001744/0.1413, allocations: 52.16 kB / 304.8 MB, free: 12.64 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003453/0.1417, allocations: 258.3 kB / 305 MB, free: 12.49 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.184e-05/0.1417, allocations: 147.4 kB / 305.2 MB, free: 12.36 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.479e-05/0.1418, allocations: 31.23 kB / 305.2 MB, free: 12.36 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004955/0.1423, allocations: 440 kB / 305.6 MB, free: 12.18 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.1423, allocations: 2.094 kB / 305.6 MB, free: 12.18 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.559e-05/0.1423, allocations: 18.19 kB / 305.6 MB, free: 12.16 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.1423, allocations: 7.375 kB / 305.6 MB, free: 12.16 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006185/0.1429, allocations: 469.4 kB / 306.1 MB, free: 12.05 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001042/0.144, allocations: 0.8338 MB / 306.9 MB, free: 11.59 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005339/0.1445, allocations: 384.6 kB / 307.3 MB, free: 11.46 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002738/0.1448, allocations: 211.4 kB / 307.5 MB, free: 11.38 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.1448, allocations: 5.844 kB / 307.5 MB, free: 11.38 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.557e-05/0.1448, allocations: 42.59 kB / 307.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 1.352e-06/0.1448, allocations: 0 / 307.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of matching and sorting (n=55): time 0.002979/0.1478, allocations: 1.936 MB / 309.5 MB, free: 10.49 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.113e-05/0.1479, allocations: 86.95 kB / 309.6 MB, free: 10.39 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002023/0.1481, allocations: 259.1 kB / 309.8 MB, free: 10.25 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.551e-05/0.1481, allocations: 36.52 kB / 309.9 MB, free: 10.21 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.327e-05/0.1481, allocations: 135.1 kB / 310 MB, free: 10.09 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.441e-05/0.1482, allocations: 193.9 kB / 310.2 MB, free: 9.938 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.892e-05/0.1483, allocations: 88.5 kB / 310.3 MB, free: 9.891 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.774e-05/0.1484, allocations: 344.4 kB / 310.6 MB, free: 9.562 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002603/0.1486, allocations: 192.4 kB / 310.8 MB, free: 9.5 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002853/0.1489, allocations: 272.8 kB / 311.1 MB, free: 9.371 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004752/0.1494, allocations: 390.7 kB / 311.5 MB, free: 9.219 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1494, allocations: 0 / 311.5 MB, free: 9.219 MB / 282.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0007292/0.1501, allocations: 0.6048 MB / 312.1 MB, free: 8.973 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.1501, allocations: 5.562 kB / 312.1 MB, free: 8.973 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.1501, allocations: 6.094 kB / 312.1 MB, free: 8.969 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004454/0.1506, allocations: 253.2 kB / 312.3 MB, free: 8.895 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.1507, allocations: 66.91 kB / 312.4 MB, free: 8.891 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002411/0.1532, allocations: 2.793 MB / 315.2 MB, free: 6.852 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001468/0.1533, allocations: 29.75 kB / 315.2 MB, free: 6.844 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.027e-05/0.1533, allocations: 17.42 kB / 315.2 MB, free: 6.84 MB / 282.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.000114/0.1535, allocations: 163.6 kB / 315.4 MB, free: 6.695 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.494e-05/0.1535, allocations: 36.16 kB / 315.4 MB, free: 6.676 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.468e-05/0.1535, allocations: 54.64 kB / 315.5 MB, free: 6.629 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.1535, allocations: 9.953 kB / 315.5 MB, free: 6.629 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.1535, allocations: 0 / 315.5 MB, free: 6.629 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.1536, allocations: 2.719 kB / 315.5 MB, free: 6.629 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001307/0.1549, allocations: 1.155 MB / 316.6 MB, free: 6.031 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1549, allocations: 2.156 kB / 316.6 MB, free: 6.031 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001743/0.155, allocations: 70.67 kB / 316.7 MB, free: 6.023 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003846/0.1554, allocations: 236.7 kB / 316.9 MB, free: 5.957 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.899e-05/0.1555, allocations: 14.56 kB / 317 MB, free: 5.949 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002111/0.1576, allocations: 2.708 MB / 319.7 MB, free: 3.945 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1576, allocations: 0 / 319.7 MB, free: 3.945 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.1587, allocations: 0.9528 MB / 320.6 MB, free: 3.48 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.1588, allocations: 73.89 kB / 320.7 MB, free: 3.445 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.152e-05/0.1588, allocations: 11.78 kB / 320.7 MB, free: 3.438 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000146/0.159, allocations: 25.92 kB / 320.7 MB, free: 3.434 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.1591, allocations: 76.41 kB / 320.8 MB, free: 3.414 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-05/0.1591, allocations: 18.95 kB / 320.8 MB, free: 3.41 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001406/0.1593, allocations: 197.7 kB / 321 MB, free: 3.301 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1593, allocations: 0 / 321 MB, free: 3.301 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004304/0.1597, allocations: 155.2 kB / 321.2 MB, free: 3.277 MB / 282.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.001375/0.1611, allocations: 1.551 MB / 322.7 MB, free: 2.281 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008564/0.1619, allocations: 0.6665 MB / 323.4 MB, free: 1.973 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1619, allocations: 0 / 323.4 MB, free: 1.973 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004892/0.1624, allocations: 464.8 kB / 323.8 MB, free: 1.734 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003029/0.1627, allocations: 50.56 kB / 323.9 MB, free: 1.711 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003867/0.1666, allocations: 3.778 MB / 327.7 MB, free: 15.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001587/0.1667, allocations: 190.1 kB / 327.9 MB, free: 15.34 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000134/0.1669, allocations: 62.45 kB / 327.9 MB, free: 15.32 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.167, allocations: 107.5 kB / 328 MB, free: 15.23 MB / 298.7 MB Notification: Performance of SimCode: time 9.32e-07/0.167, allocations: 0 / 328 MB, free: 15.23 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02458/0.1916, allocations: 11 MB / 339 MB, free: 5 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.923/8.115, allocations: 11.89 kB / 339 MB, free: 4.988 MB / 298.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/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: 9.731602817773819]