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.001501/0.001501, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002057/0.002057, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 59.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4227/0.4248, allocations: 50.54 MB / 408.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.00487/0.4297, allocations: 2.858 MB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002852/0.4326, allocations: 1.275 MB / 412.9 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004059/0.433, allocations: 7.938 kB / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004709/0.4336, allocations: 87.3 kB / 413 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008265/0.4344, allocations: 225.5 kB / 413.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006759/0.4351, allocations: 243.5 kB / 413.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009721/0.4361, allocations: 0.7172 MB / 414.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003079/0.4364, allocations: 127.4 kB / 414.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007784/0.4372, allocations: 331 kB / 414.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006876/0.4379, allocations: 378.8 kB / 415 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001859/0.4381, allocations: 60 kB / 415 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004098/0.4385, allocations: 151.9 kB / 415.2 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002208/0.4387, allocations: 159.6 kB / 415.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003352/0.4391, allocations: 282.6 kB / 415.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001021/0.4401, allocations: 0.7036 MB / 416.3 MB, free: 9.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.4401, allocations: 0 / 416.3 MB, free: 9.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4401, allocations: 0 / 416.3 MB, free: 9.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.563e-05/0.4402, allocations: 0 / 416.3 MB, free: 9.98 MB / 334.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.001925/0.4421, allocations: 0.8607 MB / 417.2 MB, free: 9.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.4422, allocations: 15.97 kB / 417.2 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001185/0.4423, allocations: 82.7 kB / 417.3 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004801/0.4428, allocations: 72.62 kB / 417.3 MB, free: 8.895 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007044/0.4435, allocations: 370.6 kB / 417.7 MB, free: 8.492 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001567/0.4437, allocations: 101 kB / 417.8 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000116/0.4438, allocations: 48.31 kB / 417.8 MB, free: 8.336 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.4449, allocations: 0.5564 MB / 418.4 MB, free: 7.766 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.505e-05/0.445, allocations: 0 / 418.4 MB, free: 7.766 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.314e-05/0.445, allocations: 20 kB / 418.4 MB, free: 7.746 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.4451, allocations: 16 kB / 418.4 MB, free: 7.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001348/0.4464, allocations: 0.6128 MB / 419 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00267/0.4491, allocations: 1.307 MB / 420.4 MB, free: 5.754 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.4503, allocations: 0.5286 MB / 420.9 MB, free: 5.215 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000617/0.4509, allocations: 306.4 kB / 421.2 MB, free: 4.914 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.253e-05/0.451, allocations: 8.562 kB / 421.2 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.878e-05/0.451, allocations: 39.31 kB / 421.2 MB, free: 4.859 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 3.116e-06/0.451, allocations: 0 / 421.2 MB, free: 4.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=70): time 0.007089/0.4581, allocations: 2.751 MB / 424 MB, free: 1.984 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.174e-05/0.4582, allocations: 85.67 kB / 424.1 MB, free: 1.883 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004949/0.4587, allocations: 351.3 kB / 424.4 MB, free: 1.531 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.289e-05/0.4588, allocations: 45.7 kB / 424.4 MB, free: 1.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.4589, allocations: 169.7 kB / 424.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002042/0.4592, allocations: 249.9 kB / 424.9 MB, free: 1.062 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002286/0.4594, allocations: 126.3 kB / 425 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.4595, allocations: 350.8 kB / 425.3 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006311/0.4602, allocations: 265.2 kB / 425.6 MB, free: 328 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006812/0.4609, allocations: 334.5 kB / 425.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/0.462, allocations: 491.1 kB / 426.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.462, allocations: 0 / 426.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001885/0.4639, allocations: 0.8493 MB / 427.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.4639, allocations: 8 kB / 427.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/0.4639, allocations: 0 / 427.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001137/0.4651, allocations: 445.3 kB / 427.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003886/0.4655, allocations: 91.86 kB / 427.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001303/0.4668, allocations: 1.017 MB / 428.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005159/0.4673, allocations: 63.98 kB / 428.9 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.68e-05/0.4674, allocations: 31.92 kB / 428.9 MB, free: 12.96 MB / 350.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.0002907/0.4677, allocations: 173.7 kB / 429.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001315/0.4678, allocations: 43.72 kB / 429.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001659/0.468, allocations: 71.84 kB / 429.2 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.468, allocations: 8 kB / 429.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.468, allocations: 0 / 429.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.468, allocations: 4 kB / 429.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003396/0.4714, allocations: 1.706 MB / 430.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.744e-06/0.4715, allocations: 7.984 kB / 430.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003993/0.4719, allocations: 79.88 kB / 431 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000962/0.4728, allocations: 408.6 kB / 431.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.305e-05/0.4729, allocations: 31.97 kB / 431.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001234/0.4742, allocations: 0.9745 MB / 432.4 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.4742, allocations: 64 / 432.4 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002584/0.4768, allocations: 1.232 MB / 433.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003015/0.4771, allocations: 188.7 kB / 433.8 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001196/0.4772, allocations: 16 kB / 433.8 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004891/0.4777, allocations: 56 kB / 433.9 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002194/0.478, allocations: 88.42 kB / 433.9 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-05/0.478, allocations: 31.91 kB / 434 MB, free: 7.715 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003669/0.4784, allocations: 253.9 kB / 434.2 MB, free: 7.469 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4784, allocations: 0 / 434.2 MB, free: 7.469 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006243/0.479, allocations: 147.9 kB / 434.4 MB, free: 7.324 MB / 350.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.003775/0.4828, allocations: 2.04 MB / 436.4 MB, free: 5.363 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001701/0.4845, allocations: 0.6806 MB / 437.1 MB, free: 4.684 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.4846, allocations: 0 / 437.1 MB, free: 4.684 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008876/0.4855, allocations: 376 kB / 437.5 MB, free: 4.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006319/0.4861, allocations: 82.5 kB / 437.5 MB, free: 4.246 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009339/0.4955, allocations: 4.894 MB / 442.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004705/0.496, allocations: 0.829 MB / 443.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003151/0.4963, allocations: 75.38 kB / 443.3 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002818/0.4966, allocations: 139.4 kB / 443.5 MB, free: 14.17 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4966, allocations: 0 / 443.5 MB, free: 14.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0402/0.5368, allocations: 14.4 MB / 457.9 MB, free: 15.94 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/12.65, allocations: 4.062 kB / 457.9 MB, free: 15.93 MB / 382.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) Reference file matches