Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001286/0.001286, allocations: 132.4 kB / 17.8 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00139/0.00139, allocations: 210.5 kB / 20.75 MB, free: 2.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 230.5 MB / 254 MB, free: 15.17 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 55.91 kB / 373 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1126, allocations: 53.38 MB / 426.3 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004198/0.1168, allocations: 2.465 MB / 428.8 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001926/0.1188, allocations: 1.053 MB / 429.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001446/0.1189, allocations: 7.938 kB / 429.9 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002995/0.1192, allocations: 59.5 kB / 429.9 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005258/0.1197, allocations: 159.9 kB / 430.1 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004202/0.1202, allocations: 167.7 kB / 430.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005255/0.1207, allocations: 466.7 kB / 430.7 MB, free: 280 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/0.1208, allocations: 52.72 kB / 430.8 MB, free: 228 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002422/0.1211, allocations: 207.4 kB / 431 MB, free: 20 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003469/0.1214, allocations: 251.3 kB / 431.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.759e-05/0.1215, allocations: 40 kB / 431.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002447/0.1217, allocations: 119.8 kB / 431.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001465/0.1219, allocations: 115.6 kB / 431.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001777/0.1221, allocations: 179.2 kB / 431.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006058/0.1227, allocations: 490.2 kB / 432.1 MB, free: 14.85 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.1227, allocations: 4 kB / 432.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1227, allocations: 0 / 432.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.1227, allocations: 4 kB / 432.1 MB, free: 14.84 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001355/0.124, allocations: 0.6688 MB / 432.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.1241, allocations: 8.031 kB / 432.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.166e-05/0.1242, allocations: 74.66 kB / 432.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003234/0.1245, allocations: 48.69 kB / 432.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005388/0.125, allocations: 304.7 kB / 433.2 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000137/0.1252, allocations: 84.52 kB / 433.3 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.652e-05/0.1252, allocations: 32.31 kB / 433.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007619/0.126, allocations: 389.1 kB / 433.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.126, allocations: 8 kB / 433.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.708e-05/0.1261, allocations: 8 kB / 433.7 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.523e-05/0.1261, allocations: 8 kB / 433.8 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008968/0.127, allocations: 417.9 kB / 434.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00222/0.1292, allocations: 1.273 MB / 435.4 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007669/0.13, allocations: 322.5 kB / 435.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004054/0.1304, allocations: 172.7 kB / 435.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.081e-05/0.1304, allocations: 4.719 kB / 435.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.77e-05/0.1304, allocations: 34.56 kB / 436 MB, free: 10.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.834e-06/0.1304, allocations: 0 / 436 MB, free: 10.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.005102/0.1355, allocations: 1.893 MB / 437.8 MB, free: 8.797 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.963e-05/0.1356, allocations: 88.8 kB / 437.9 MB, free: 8.691 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003286/0.1359, allocations: 246.3 kB / 438.2 MB, free: 8.441 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.383e-05/0.136, allocations: 41.7 kB / 438.2 MB, free: 8.395 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.1361, allocations: 140.7 kB / 438.4 MB, free: 8.254 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000141/0.1362, allocations: 162.8 kB / 438.5 MB, free: 8.094 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001577/0.1364, allocations: 86.06 kB / 438.6 MB, free: 8.004 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.1365, allocations: 334.8 kB / 438.9 MB, free: 7.668 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003919/0.1369, allocations: 160.8 kB / 439.1 MB, free: 7.512 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004519/0.1374, allocations: 225.9 kB / 439.3 MB, free: 7.277 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007428/0.1381, allocations: 339.2 kB / 439.6 MB, free: 6.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1381, allocations: 4.031 kB / 439.6 MB, free: 6.926 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001199/0.1393, allocations: 0.5357 MB / 440.2 MB, free: 6.379 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.1393, allocations: 4 kB / 440.2 MB, free: 6.375 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.1394, allocations: 4 kB / 440.2 MB, free: 6.371 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008412/0.1402, allocations: 300.7 kB / 440.5 MB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002525/0.1405, allocations: 59.89 kB / 440.5 MB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004337/0.1448, allocations: 2.897 MB / 443.4 MB, free: 2.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000309/0.1451, allocations: 20.02 kB / 443.4 MB, free: 2.953 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.267e-05/0.1452, allocations: 23.98 kB / 443.5 MB, free: 2.93 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0002278/0.1454, allocations: 149.8 kB / 443.6 MB, free: 2.773 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.977e-05/0.1455, allocations: 35.75 kB / 443.7 MB, free: 2.738 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001163/0.1456, allocations: 46.98 kB / 443.7 MB, free: 2.695 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.1456, allocations: 4 kB / 443.7 MB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.1456, allocations: 0 / 443.7 MB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.846e-06/0.1456, allocations: 3.984 kB / 443.7 MB, free: 2.688 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002041/0.1477, allocations: 1.094 MB / 444.8 MB, free: 1.531 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.1477, allocations: 4 kB / 444.8 MB, free: 1.527 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002355/0.1479, allocations: 51.89 kB / 444.9 MB, free: 1.477 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007608/0.1487, allocations: 276.9 kB / 445.1 MB, free: 1.203 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.937e-05/0.1487, allocations: 19.92 kB / 445.1 MB, free: 1.184 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.189/0.3377, allocations: 2.846 MB / 448 MB, free: 23.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3377, allocations: 0 / 448 MB, free: 23.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001526/0.3393, allocations: 0.8044 MB / 448.8 MB, free: 22.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.3394, allocations: 149.2 kB / 448.9 MB, free: 22.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.542e-05/0.3395, allocations: 12.59 kB / 449 MB, free: 22.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000263/0.3397, allocations: 20.77 kB / 449 MB, free: 22.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001623/0.3399, allocations: 64.69 kB / 449 MB, free: 22.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.111e-05/0.3399, allocations: 21.97 kB / 449.1 MB, free: 22.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001977/0.3401, allocations: 184.2 kB / 449.2 MB, free: 22.74 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3401, allocations: 0 / 449.2 MB, free: 22.74 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000617/0.3407, allocations: 138.1 kB / 449.4 MB, free: 22.74 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.003092/0.3438, allocations: 1.633 MB / 451 MB, free: 22.03 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00135/0.3452, allocations: 0.5983 MB / 451.6 MB, free: 21.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3452, allocations: 0 / 451.6 MB, free: 21.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000756/0.3459, allocations: 417.6 kB / 452 MB, free: 21.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004757/0.3464, allocations: 40.58 kB / 452.1 MB, free: 21.58 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004968/0.3514, allocations: 3.399 MB / 455.5 MB, free: 19.51 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002672/0.3517, allocations: 0.7801 MB / 456.2 MB, free: 18.81 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002244/0.3519, allocations: 78.61 kB / 456.3 MB, free: 18.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000163/0.352, allocations: 91.66 kB / 456.4 MB, free: 18.73 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.352, allocations: 0 / 456.4 MB, free: 18.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04345/0.3955, allocations: 10.63 MB / 467 MB, free: 16.24 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.14/12.54, allocations: 8.125 kB / 467 MB, free: 16.23 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable gear.mode in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv. Warning: Get data of variable gear.mode from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.058760570944287]