Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.LossyGearDemo2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001443/0.001443, allocations: 103.9 kB / 17.63 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001516/0.001516, allocations: 210.5 kB / 18.58 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.4 MB / 246.8 MB, free: 10.67 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 61.06 kB / 307 MB, free: 0.5625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1077, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.005265/0.113, allocations: 2.849 MB / 360.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002764/0.1158, allocations: 1.275 MB / 361.7 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004087/0.1163, allocations: 11.94 kB / 361.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004835/0.1168, allocations: 87.28 kB / 361.8 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009331/0.1177, allocations: 214.1 kB / 362 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008052/0.1186, allocations: 251.5 kB / 362.3 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009737/0.1196, allocations: 0.7095 MB / 363 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002765/0.1198, allocations: 123.4 kB / 363.1 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006717/0.1205, allocations: 323.1 kB / 363.4 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006053/0.1211, allocations: 378.8 kB / 363.8 MB, free: 7.785 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002223/0.1214, allocations: 56 kB / 363.8 MB, free: 7.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004626/0.1218, allocations: 151.9 kB / 364 MB, free: 7.582 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00028/0.1221, allocations: 175.5 kB / 364.1 MB, free: 7.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004048/0.1226, allocations: 270.7 kB / 364.4 MB, free: 7.145 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001088/0.1237, allocations: 0.7052 MB / 365.1 MB, free: 6.438 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.1237, allocations: 0 / 365.1 MB, free: 6.438 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.1237, allocations: 0 / 365.1 MB, free: 6.438 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.803e-05/0.1237, allocations: 0 / 365.1 MB, free: 6.438 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.00236/0.1261, allocations: 0.8382 MB / 366 MB, free: 5.547 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.1261, allocations: 8.031 kB / 366 MB, free: 5.539 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001832/0.1263, allocations: 82.72 kB / 366 MB, free: 5.449 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005666/0.1269, allocations: 80.25 kB / 366.1 MB, free: 5.371 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007146/0.1276, allocations: 366.4 kB / 366.5 MB, free: 4.977 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/0.1278, allocations: 96.95 kB / 366.6 MB, free: 4.871 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/0.1279, allocations: 44.28 kB / 366.6 MB, free: 4.828 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.1291, allocations: 0.5564 MB / 367.2 MB, free: 4.258 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.943e-05/0.1292, allocations: 4 kB / 367.2 MB, free: 4.254 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.317e-05/0.1292, allocations: 20 kB / 367.2 MB, free: 4.234 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/0.1292, allocations: 12 kB / 367.2 MB, free: 4.223 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001412/0.1307, allocations: 0.6089 MB / 367.8 MB, free: 3.613 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002595/0.1333, allocations: 1.306 MB / 369.1 MB, free: 2.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.1344, allocations: 0.5131 MB / 369.6 MB, free: 1.727 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006105/0.1351, allocations: 320.7 kB / 370 MB, free: 1.414 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.039e-05/0.1351, allocations: 12.72 kB / 370 MB, free: 1.402 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.194e-05/0.1352, allocations: 47.06 kB / 370 MB, free: 1.348 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.726e-06/0.1352, allocations: 0 / 370 MB, free: 1.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=70): time 0.1913/0.3264, allocations: 2.738 MB / 372.7 MB, free: 20.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.28e-05/0.3265, allocations: 84.02 kB / 372.8 MB, free: 19.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004942/0.327, allocations: 348.6 kB / 373.2 MB, free: 19.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.587e-05/0.3271, allocations: 43.09 kB / 373.2 MB, free: 19.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.3272, allocations: 171.9 kB / 373.4 MB, free: 19.67 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000158/0.3274, allocations: 231 kB / 373.6 MB, free: 19.51 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000245/0.3276, allocations: 127.7 kB / 373.7 MB, free: 19.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.243e-05/0.3277, allocations: 354.8 kB / 374.1 MB, free: 19.12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006212/0.3283, allocations: 266.6 kB / 374.3 MB, free: 19.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006647/0.329, allocations: 334 kB / 374.7 MB, free: 18.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/0.3301, allocations: 497 kB / 375.2 MB, free: 18.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3301, allocations: 2 kB / 375.2 MB, free: 18.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001752/0.3319, allocations: 0.8358 MB / 376 MB, free: 18.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.3319, allocations: 5.281 kB / 376 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.3319, allocations: 1.75 kB / 376 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00116/0.3331, allocations: 448.9 kB / 376.4 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003906/0.3335, allocations: 83.33 kB / 376.5 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001138/0.3346, allocations: 1.027 MB / 377.5 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000508/0.3351, allocations: 55.98 kB / 377.6 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.599e-05/0.3352, allocations: 29.75 kB / 377.6 MB, free: 17.45 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,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 (46): * Single equations (assignments): 45 * 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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002638/0.3355, allocations: 179.7 kB / 377.8 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.3356, allocations: 48.84 kB / 377.8 MB, free: 17.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001501/0.3358, allocations: 67.08 kB / 377.9 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.3358, allocations: 8.953 kB / 377.9 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/0.3358, allocations: 2.625 kB / 377.9 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.3358, allocations: 4.172 kB / 377.9 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003222/0.3391, allocations: 1.703 MB / 379.6 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.3391, allocations: 0.7031 kB / 379.6 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004096/0.3395, allocations: 86.67 kB / 379.7 MB, free: 16.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009383/0.3404, allocations: 420.5 kB / 380.1 MB, free: 16.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.441e-05/0.3405, allocations: 27.12 kB / 380.2 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001095/0.3416, allocations: 0.971 MB / 381.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3416, allocations: 0 / 381.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002431/0.3441, allocations: 1.226 MB / 382.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002423/0.3443, allocations: 189.5 kB / 382.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.3444, allocations: 22.36 kB / 382.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004554/0.3449, allocations: 59.09 kB / 382.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002288/0.3451, allocations: 89.22 kB / 382.7 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.481e-05/0.3452, allocations: 24.42 kB / 382.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003161/0.3455, allocations: 256.2 kB / 383 MB, free: 14.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3455, allocations: 0 / 383 MB, free: 14.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005603/0.3461, allocations: 147.8 kB / 383.1 MB, free: 14.58 MB / 302.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: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003274/0.3494, allocations: 2.036 MB / 385.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001744/0.3511, allocations: 0.7125 MB / 385.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3511, allocations: 3.938 kB / 385.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008264/0.352, allocations: 381 kB / 386.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000532/0.3525, allocations: 67.56 kB / 386.3 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008118/0.3606, allocations: 4.91 MB / 391.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002759/0.361, allocations: 0.8251 MB / 392 MB, free: 9.527 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002954/0.3613, allocations: 81.95 kB / 392.1 MB, free: 9.496 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002443/0.3615, allocations: 146.9 kB / 392.3 MB, free: 9.402 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3615, allocations: 4 kB / 392.3 MB, free: 9.398 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03239/0.3939, allocations: 14.16 MB / 406.4 MB, free: 14.24 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.2, allocations: 4.609 kB / 406.4 MB, free: 14.24 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_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_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[1016]=0.500000 File[703668]=0.063596 Error: Could not read variable bearingFriction.mode in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.mode from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startBackward in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startBackward from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startForward in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startForward from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable gear.mode in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable gear.mode from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! " Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:time,Inertia2.phi,Inertia2.w