Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",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.001428/0.001428, allocations: 112.2 kB / 17.06 MB, free: 5.82 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.001639/0.001639, allocations: 195.9 kB / 18 MB, free: 4.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 43.94 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2978, allocations: 49.43 MB / 400.3 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02041/0.3183, allocations: 19.43 MB / 419.7 MB, free: 5.301 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01327/0.3316, allocations: 5.972 MB / 425.7 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004353/0.336, allocations: 151.5 kB / 425.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01101/0.3471, allocations: 5.852 MB / 431.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01049/0.3576, allocations: 3.443 MB / 435.1 MB, free: 5.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003926/0.3616, allocations: 1.564 MB / 436.7 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01878/0.3804, allocations: 12.37 MB / 449 MB, free: 7.879 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01008/0.3905, allocations: 7.643 MB / 456.7 MB, free: 152 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007534/0.3981, allocations: 3.575 MB / 460.3 MB, free: 12.56 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008126/0.4062, allocations: 4.756 MB / 465 MB, free: 7.793 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00269/0.409, allocations: 0.7109 MB / 465.7 MB, free: 7.082 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004556/0.4135, allocations: 1.686 MB / 467.4 MB, free: 5.395 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006167/0.4197, allocations: 4.255 MB / 471.7 MB, free: 1.129 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009221/0.429, allocations: 4.76 MB / 476.4 MB, free: 12.34 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01977/0.4488, allocations: 14.41 MB / 490.8 MB, free: 13.87 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.4489, allocations: 0 / 490.8 MB, free: 13.87 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4489, allocations: 0 / 490.8 MB, free: 13.87 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005467/0.4494, allocations: 0 / 490.8 MB, free: 13.87 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.03351/0.483, allocations: 10.58 MB / 0.4897 GB, free: 3.188 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.094e-05/0.483, allocations: 12.03 kB / 0.4897 GB, free: 3.176 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004082/0.4871, allocations: 1.136 MB / 0.4908 GB, free: 2.027 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2923/0.7794, allocations: 24.3 MB / 0.5145 GB, free: 9.691 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02329/0.8028, allocations: 9.816 MB / 0.5241 GB, free: 15.79 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003965/0.8032, allocations: 431 kB / 0.5245 GB, free: 15.37 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00206/0.8053, allocations: 0.5855 MB / 0.5251 GB, free: 14.78 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3995/1.205, allocations: 16.17 MB / 0.5409 GB, free: 119.9 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005532/1.205, allocations: 96.31 kB / 0.541 GB, free: 119.9 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001707/1.207, allocations: 270.2 kB / 0.5412 GB, free: 119.9 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004591/1.212, allocations: 2.77 MB / 0.5439 GB, free: 119.5 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02497/1.237, allocations: 12.85 MB / 0.5565 GB, free: 114.2 MB / 462.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07207/1.309, allocations: 66.25 MB / 0.6212 GB, free: 48.75 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01781/1.327, allocations: 7.595 MB / 0.6286 GB, free: 41.02 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004269/1.331, allocations: 4.202 MB / 0.6327 GB, free: 36.8 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01725/1.348, allocations: 11.7 MB / 0.6441 GB, free: 25.04 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.443e-05/1.348, allocations: 68.5 kB / 0.6442 GB, free: 24.97 MB / 462.1 MB Notification: Performance of pre-optimization done (n=280): time 6.242e-06/1.348, allocations: 0 / 0.6442 GB, free: 24.97 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1708/1.519, allocations: 47.8 MB / 0.6909 GB, free: 9.602 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002514/1.52, allocations: 406 kB / 0.6913 GB, free: 9.117 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01179/1.531, allocations: 7.168 MB / 0.6983 GB, free: 2.074 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009267/1.532, allocations: 77.7 kB / 0.6983 GB, free: 1.992 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004318/1.537, allocations: 5.346 MB / 0.7035 GB, free: 12.87 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001976/1.539, allocations: 1.306 MB / 0.7048 GB, free: 11.55 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003094/1.542, allocations: 1.659 MB / 0.7064 GB, free: 9.883 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001064/1.542, allocations: 305.1 kB / 0.7067 GB, free: 9.582 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005955/1.548, allocations: 3.959 MB / 0.7106 GB, free: 5.613 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00978/1.558, allocations: 8.591 MB / 0.719 GB, free: 10.74 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01792/1.576, allocations: 13.48 MB / 0.7322 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001605/1.576, allocations: 48 kB / 0.7322 GB, free: 10.94 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.2708/1.847, allocations: 17.2 MB / 0.749 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001353/1.847, allocations: 73.81 kB / 0.7491 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002525/1.847, allocations: 164 kB / 0.7492 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01659/1.864, allocations: 5.763 MB / 0.7549 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005743/1.869, allocations: 1.749 MB / 0.7566 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03935/1.909, allocations: 31.67 MB / 0.7875 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007862/1.917, allocations: 0.5265 MB / 0.788 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001716/1.918, allocations: 475.8 kB / 0.7885 GB, free: 158.8 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * Number of states: 0 () * Number of discrete variables: 66 (cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[1],crank2.color[3],crank2.color[2],crank2.color[1],crank2.body.sphereColor[3],crank2.body.sphereColor[2],crank2.body.sphereColor[1],crank1.color[3],crank1.color[2],crank1.color[1],crank1.body.sphereColor[3],crank1.body.sphereColor[2],crank1.body.sphereColor[1],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (934): * Single equations (assignments): 928 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,93,51.6%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.007172/1.926, allocations: 3.452 MB / 0.7918 GB, free: 155.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001954/1.928, allocations: 0.6845 MB / 0.7925 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02398/1.952, allocations: 11.47 MB / 0.8037 GB, free: 143.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.056e-05/1.952, allocations: 40 kB / 0.8037 GB, free: 143.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-05/1.952, allocations: 16 kB / 0.8038 GB, free: 143.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.839e-05/1.952, allocations: 19.94 kB / 0.8038 GB, free: 143.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04701/1.999, allocations: 24.75 MB / 0.8279 GB, free: 118.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.871e-05/1.999, allocations: 8 kB / 0.828 GB, free: 118.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001923/2.001, allocations: 424.2 kB / 0.8284 GB, free: 118.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0156/2.016, allocations: 5.371 MB / 0.8336 GB, free: 112.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007837/2.017, allocations: 67.98 kB / 0.8337 GB, free: 112.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03721/2.055, allocations: 30.35 MB / 0.8633 GB, free: 82.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.688e-06/2.055, allocations: 11.94 kB / 0.8633 GB, free: 82.18 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02898/2.084, allocations: 16.52 MB / 0.8795 GB, free: 65.86 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001945/2.086, allocations: 0.7124 MB / 0.8801 GB, free: 65.15 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002074/2.088, allocations: 63.98 kB / 0.8802 GB, free: 65.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004384/2.092, allocations: 259.6 kB / 0.8805 GB, free: 64.83 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001165/2.093, allocations: 242.7 kB / 0.8807 GB, free: 64.59 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005836/2.094, allocations: 84.28 kB / 0.8808 GB, free: 64.51 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008108/2.102, allocations: 4.628 MB / 0.8853 GB, free: 59.92 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.41e-07/2.102, allocations: 0 / 0.8853 GB, free: 59.92 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009841/2.112, allocations: 1.976 MB / 0.8872 GB, free: 57.95 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 2 (inertia.phi,inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (214): * Single equations (assignments): 208 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,87,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03096/2.143, allocations: 17.21 MB / 0.904 GB, free: 40.54 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01706/2.16, allocations: 10.53 MB / 0.9143 GB, free: 29.98 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.335e-05/2.16, allocations: 0 / 0.9143 GB, free: 29.98 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.008254/2.168, allocations: 4.707 MB / 0.9189 GB, free: 25.22 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009321/2.178, allocations: 1.086 MB / 0.92 GB, free: 24.14 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4115/2.589, allocations: 91.63 MB / 1.009 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01072/2.6, allocations: 5.527 MB / 1.015 GB, free: 118.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006928/2.607, allocations: 2.624 MB / 1.017 GB, free: 115.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006091/2.613, allocations: 3.733 MB / 1.021 GB, free: 111.7 MB / 0.5294 GB Notification: Performance of SimCode: time 3.637e-06/2.613, allocations: 4 kB / 1.021 GB, free: 111.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5175/3.131, allocations: 157.5 MB / 1.175 GB, free: 172.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 40.17/43.3, allocations: 7.469 kB / 1.175 GB, free: 172.2 MB / 0.545 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches