Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001625/0.001625, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002819/0.002819, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.501/1.501, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001312, allocations: 64.2 kB / 307.1 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09634/0.09767, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2004/0.2981, allocations: 20.43 MB / 378 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01319/0.3114, allocations: 6.19 MB / 384.2 MB, free: 7.043 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003905/0.3153, allocations: 165.1 kB / 384.4 MB, free: 7.008 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0104/0.3258, allocations: 6.332 MB / 390.7 MB, free: 4.047 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008798/0.3346, allocations: 3.387 MB / 394.1 MB, free: 1.875 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003466/0.3381, allocations: 1.665 MB / 395.7 MB, free: 0.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01793/0.356, allocations: 12.96 MB / 408.7 MB, free: 8.262 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01088/0.367, allocations: 8.07 MB / 416.8 MB, free: 116 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007452/0.3745, allocations: 3.735 MB / 420.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007264/0.3818, allocations: 4.935 MB / 425.4 MB, free: 7.414 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002414/0.3842, allocations: 0.7461 MB / 426.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004584/0.3888, allocations: 1.698 MB / 427.9 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005304/0.3942, allocations: 4.318 MB / 432.2 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008605/0.4028, allocations: 4.939 MB / 437.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01916/0.422, allocations: 14.47 MB / 451.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/0.422, allocations: 0 / 451.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.458e-06/0.422, allocations: 0 / 451.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006029/0.4226, allocations: 3.938 kB / 451.6 MB, free: 13.16 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: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.03563/0.4583, allocations: 10.67 MB / 462.3 MB, free: 2.395 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.4584, allocations: 12.03 kB / 462.3 MB, free: 2.383 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003312/0.4617, allocations: 1.193 MB / 463.5 MB, free: 1.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.304/0.7657, allocations: 24.29 MB / 487.8 MB, free: 8.852 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02029/0.786, allocations: 9.115 MB / 496.9 MB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004586/0.7865, allocations: 448 kB / 497.3 MB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002281/0.7888, allocations: 0.6126 MB / 497.9 MB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03548/0.8243, allocations: 16.74 MB / 0.5026 GB, free: 12.79 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004607/0.8248, allocations: 103.1 kB / 0.5027 GB, free: 12.69 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001805/0.8266, allocations: 279.8 kB / 0.503 GB, free: 12.42 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004679/0.8313, allocations: 2.854 MB / 0.5058 GB, free: 9.559 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02827/0.8596, allocations: 13.26 MB / 0.5187 GB, free: 12.28 MB / 446.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.4033/1.263, allocations: 68.33 MB / 0.5855 GB, free: 89.64 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01924/1.282, allocations: 7.892 MB / 0.5932 GB, free: 85.61 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005035/1.287, allocations: 4.317 MB / 0.5974 GB, free: 83.31 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01975/1.307, allocations: 12.05 MB / 0.6092 GB, free: 74.74 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.829e-05/1.307, allocations: 72.5 kB / 0.6092 GB, free: 74.66 MB / 446.1 MB Notification: Performance of pre-optimization done (n=293): time 5.851e-06/1.307, allocations: 0 / 0.6092 GB, free: 74.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=359): time 0.18/1.487, allocations: 49.78 MB / 0.6578 GB, free: 24.95 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/1.487, allocations: 410.2 kB / 0.6582 GB, free: 24.46 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01106/1.498, allocations: 7.307 MB / 0.6654 GB, free: 17.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009349/1.499, allocations: 85.7 kB / 0.6654 GB, free: 17.11 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003051/1.502, allocations: 5.344 MB / 0.6707 GB, free: 11.76 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001413/1.504, allocations: 1.309 MB / 0.6719 GB, free: 10.46 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003043/1.507, allocations: 1.692 MB / 0.6736 GB, free: 8.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.691e-05/1.507, allocations: 301.1 kB / 0.6739 GB, free: 8.453 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005053/1.512, allocations: 4.124 MB / 0.6779 GB, free: 4.32 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008355/1.52, allocations: 8.871 MB / 0.6866 GB, free: 9.121 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01965/1.54, allocations: 13.95 MB / 0.7002 GB, free: 8.855 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001283/1.54, allocations: 48 kB / 0.7002 GB, free: 8.809 MB / 478.1 MB Notification: Performance of matching and sorting (n=1106) (initialization): time 0.2205/1.761, allocations: 17.86 MB / 0.7177 GB, free: 151.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001165/1.761, allocations: 74.34 kB / 0.7177 GB, free: 151.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002458/1.761, allocations: 166.8 kB / 0.7179 GB, free: 151.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01862/1.78, allocations: 6.061 MB / 0.7238 GB, free: 150.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005811/1.786, allocations: 1.826 MB / 0.7256 GB, free: 150.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03761/1.823, allocations: 32.89 MB / 0.7577 GB, free: 131.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007585/1.831, allocations: 0.5356 MB / 0.7583 GB, free: 130.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001375/1.832, allocations: 488 kB / 0.7587 GB, free: 130.4 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 743 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],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 (967): * Single equations (assignments): 961 * 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,97,55.1%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.005595/1.838, allocations: 3.589 MB / 0.7622 GB, free: 126.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0014/1.839, allocations: 0.6717 MB / 0.7629 GB, free: 126.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02321/1.863, allocations: 12.09 MB / 0.7747 GB, free: 114.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.866e-05/1.863, allocations: 36 kB / 0.7747 GB, free: 114.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.227e-05/1.863, allocations: 26.34 kB / 0.7747 GB, free: 114.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.174e-05/1.863, allocations: 15.94 kB / 0.7748 GB, free: 114.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04104/1.904, allocations: 26.01 MB / 0.8002 GB, free: 88.14 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.706e-05/1.904, allocations: 5.969 kB / 0.8002 GB, free: 88.13 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002151/1.906, allocations: 464 kB / 0.8006 GB, free: 87.68 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01622/1.922, allocations: 5.72 MB / 0.8062 GB, free: 81.94 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006962/1.923, allocations: 68 kB / 0.8063 GB, free: 81.88 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03501/1.958, allocations: 31.7 MB / 0.8372 GB, free: 49.95 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.311e-06/1.958, allocations: 11.94 kB / 0.8372 GB, free: 49.94 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02873/1.987, allocations: 17.39 MB / 0.8542 GB, free: 32.48 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001851/1.989, allocations: 0.6885 MB / 0.8549 GB, free: 31.78 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002177/1.991, allocations: 71.92 kB / 0.855 GB, free: 31.71 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004616/1.996, allocations: 283.2 kB / 0.8552 GB, free: 31.43 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001436/1.997, allocations: 250.9 kB / 0.8555 GB, free: 31.19 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003627/1.997, allocations: 88 kB / 0.8555 GB, free: 31.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007268/2.005, allocations: 4.714 MB / 0.8602 GB, free: 26.43 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.41e-07/2.005, allocations: 0 / 0.8602 GB, free: 26.43 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00852/2.013, allocations: 2.037 MB / 0.8621 GB, free: 24.39 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (231): * Single equations (assignments): 225 * 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,90,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.02902/2.042, allocations: 18.11 MB / 0.8798 GB, free: 6.113 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.2268/2.269, allocations: 14.21 MB / 0.8937 GB, free: 155.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.504e-05/2.269, allocations: 1.469 kB / 0.8937 GB, free: 155.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009224/2.278, allocations: 4.952 MB / 0.8985 GB, free: 153.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009066/2.287, allocations: 1.119 MB / 0.8996 GB, free: 152.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1591/2.447, allocations: 118.8 MB / 1.016 GB, free: 33.15 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007526/2.454, allocations: 5.732 MB / 1.021 GB, free: 27.38 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006656/2.461, allocations: 2.713 MB / 1.024 GB, free: 24.66 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004487/2.465, allocations: 3.873 MB / 1.028 GB, free: 20.79 MB / 478.1 MB Notification: Performance of SimCode: time 1.103e-06/2.465, allocations: 0 / 1.028 GB, free: 20.79 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4128/2.878, allocations: 169.2 MB / 1.193 GB, free: 58.64 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.28/19.15, allocations: 11.84 kB / 1.193 GB, free: 58.63 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches