Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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.LossyGearDemo2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001796/0.001796, allocations: 104 kB / 17.58 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002249/0.00225, allocations: 192.2 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.707/2.707, allocations: 205.1 MB / 224.4 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00208/0.00208, allocations: 56.12 kB / 280.8 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/0.1539, allocations: 46.63 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.008102/0.1621, allocations: 2.724 MB / 330.1 MB, free: 1.637 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004063/0.1662, allocations: 1.124 MB / 331.2 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000569/0.1669, allocations: 8 kB / 331.2 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004996/0.1675, allocations: 71.36 kB / 331.3 MB, free: 436 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001375/0.1689, allocations: 198.8 kB / 331.5 MB, free: 236 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001029/0.1699, allocations: 235.6 kB / 331.7 MB, free: 0 / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001511/0.1715, allocations: 0.6391 MB / 332.4 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004716/0.172, allocations: 131.3 kB / 332.5 MB, free: 15.22 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009413/0.1729, allocations: 295.2 kB / 332.8 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001084/0.174, allocations: 342.9 kB / 333.1 MB, free: 14.6 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002551/0.1743, allocations: 56 kB / 333.2 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005444/0.1749, allocations: 127.9 kB / 333.3 MB, free: 14.42 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003548/0.1752, allocations: 139.6 kB / 333.4 MB, free: 14.28 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005396/0.1758, allocations: 254.8 kB / 333.7 MB, free: 14.03 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001134/0.1769, allocations: 0.6349 MB / 334.3 MB, free: 13.39 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.177, allocations: 0 / 334.3 MB, free: 13.39 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.177, allocations: 0 / 334.3 MB, free: 13.39 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.858e-05/0.177, allocations: 0 / 334.3 MB, free: 13.39 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002619/0.1796, allocations: 0.7993 MB / 335.1 MB, free: 12.54 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.467e-05/0.1797, allocations: 15.89 kB / 335.1 MB, free: 12.53 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002463/0.18, allocations: 82.72 kB / 335.2 MB, free: 12.44 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007023/0.1807, allocations: 64.36 kB / 335.3 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/0.1819, allocations: 362.4 kB / 335.6 MB, free: 11.98 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000277/0.1822, allocations: 100.9 kB / 335.7 MB, free: 11.87 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001596/0.1824, allocations: 40.38 kB / 335.8 MB, free: 11.83 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001917/0.1843, allocations: 0.5565 MB / 336.3 MB, free: 11.26 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.649e-05/0.1844, allocations: 4 kB / 336.3 MB, free: 11.26 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.563e-05/0.1845, allocations: 20 kB / 336.3 MB, free: 11.24 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.435e-05/0.1845, allocations: 8 kB / 336.4 MB, free: 11.23 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001814/0.1863, allocations: 0.6324 MB / 337 MB, free: 10.6 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00422/0.1906, allocations: 1.291 MB / 338.3 MB, free: 9.25 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003439/0.1941, allocations: 0.5483 MB / 338.8 MB, free: 8.695 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001117/0.1953, allocations: 326.3 kB / 339.1 MB, free: 8.375 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.303e-05/0.1954, allocations: 16.55 kB / 339.2 MB, free: 8.359 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.183e-05/0.1954, allocations: 35.12 kB / 339.2 MB, free: 8.312 MB / 286.1 MB Notification: Performance of pre-optimization done (n=61): time 7.775e-06/0.1955, allocations: 0 / 339.2 MB, free: 8.312 MB / 286.1 MB Notification: Performance of matching and sorting (n=69): time 0.01195/0.2074, allocations: 2.867 MB / 342.1 MB, free: 5.324 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/0.2076, allocations: 89.61 kB / 342.2 MB, free: 5.219 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007767/0.2084, allocations: 334.9 kB / 342.5 MB, free: 4.879 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001064/0.2085, allocations: 41.7 kB / 342.5 MB, free: 4.832 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002128/0.2088, allocations: 161.6 kB / 342.7 MB, free: 4.672 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003886/0.2092, allocations: 232.7 kB / 342.9 MB, free: 4.441 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000461/0.2097, allocations: 122.2 kB / 343 MB, free: 4.316 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000221/0.2099, allocations: 354.7 kB / 343.4 MB, free: 3.961 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001131/0.211, allocations: 289.2 kB / 343.7 MB, free: 3.68 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001228/0.2123, allocations: 350.5 kB / 344 MB, free: 3.324 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00202/0.2143, allocations: 0.5265 MB / 344.5 MB, free: 2.789 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.2144, allocations: 0 / 344.5 MB, free: 2.789 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.003408/0.2178, allocations: 0.8851 MB / 345.4 MB, free: 1.895 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.738e-05/0.2179, allocations: 11.94 kB / 345.4 MB, free: 1.883 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/0.2179, allocations: 0 / 345.4 MB, free: 1.883 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001986/0.2199, allocations: 477.6 kB / 345.9 MB, free: 1.414 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006745/0.2206, allocations: 79.89 kB / 346 MB, free: 1.336 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002225/0.2228, allocations: 1.079 MB / 347 MB, free: 236 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008792/0.2237, allocations: 56 kB / 347.1 MB, free: 180 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001109/0.2239, allocations: 31.98 kB / 347.1 MB, free: 148 kB / 286.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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0004526/0.2243, allocations: 177.6 kB / 347.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002082/0.2246, allocations: 39.53 kB / 347.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002616/0.2248, allocations: 67.77 kB / 347.4 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.551e-05/0.2249, allocations: 8 kB / 347.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.899e-06/0.2249, allocations: 0 / 347.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.2249, allocations: 3.984 kB / 347.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006265/0.2312, allocations: 1.754 MB / 349.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.2313, allocations: 0 / 349.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006668/0.2319, allocations: 83.91 kB / 349.3 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001736/0.2337, allocations: 448.4 kB / 349.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/0.2338, allocations: 27.91 kB / 349.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002387/0.2362, allocations: 1.044 MB / 350.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.2363, allocations: 0 / 350.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004907/0.2412, allocations: 1.302 MB / 352.1 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004537/0.2417, allocations: 180.5 kB / 352.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001716/0.2419, allocations: 19.98 kB / 352.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008319/0.2427, allocations: 60 kB / 352.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003593/0.2431, allocations: 80.44 kB / 352.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.2432, allocations: 23.97 kB / 352.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005387/0.2438, allocations: 245.9 kB / 352.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.2438, allocations: 0 / 352.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009899/0.2448, allocations: 147.9 kB / 352.8 MB, free: 10.32 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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005577/0.2504, allocations: 1.889 MB / 354.7 MB, free: 8.395 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003394/0.2539, allocations: 0.7391 MB / 355.4 MB, free: 7.652 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.523e-06/0.2539, allocations: 0 / 355.4 MB, free: 7.652 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001551/0.2555, allocations: 396.2 kB / 355.8 MB, free: 7.266 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009449/0.2565, allocations: 61.05 kB / 355.9 MB, free: 7.207 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01585/0.2723, allocations: 5.013 MB / 360.9 MB, free: 2.086 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006984/0.2731, allocations: 0.8134 MB / 361.7 MB, free: 1.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005256/0.2737, allocations: 59.34 kB / 361.8 MB, free: 1.191 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003915/0.2741, allocations: 131.4 kB / 361.9 MB, free: 1.062 MB / 302.1 MB Notification: Performance of SimCode: time 1.112e-06/0.2741, allocations: 4 kB / 361.9 MB, free: 1.059 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07194/0.346, allocations: 13.57 MB / 375.5 MB, free: 3.406 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.14/18.49, allocations: 15.98 kB / 375.5 MB, free: 3.391 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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[382764]=0.063596 Error: Could not read variable bearingFriction.mode in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.mode from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startBackward in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startBackward from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startForward in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startForward from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable gear.mode in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable gear.mode from file Modelica_3.2.3_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