Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00102/0.00102, allocations: 105.2 kB / 17.21 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001037/0.001037, allocations: 205.8 kB / 18.13 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.195/1.195, allocations: 227.4 MB / 246.3 MB, free: 10.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 59.91 kB / 306.4 MB, free: 0.9453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08536/0.0869, allocations: 50.53 MB / 356.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2199/0.3068, allocations: 102.6 MB / 459.5 MB, free: 4.828 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03839/0.3452, allocations: 19.63 MB / 479.2 MB, free: 1.141 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01636/0.3616, allocations: 474.8 kB / 479.6 MB, free: 0.6758 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009718/0.3714, allocations: 5.837 MB / 485.5 MB, free: 10.82 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007559/0.379, allocations: 3.137 MB / 488.6 MB, free: 7.68 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002985/0.382, allocations: 1.457 MB / 490 MB, free: 6.223 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0183/0.4003, allocations: 17.63 MB / 0.4958 GB, free: 4.562 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008726/0.409, allocations: 7.475 MB / 0.5031 GB, free: 13.02 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005021/0.4141, allocations: 3.188 MB / 0.5062 GB, free: 9.82 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006193/0.4203, allocations: 5.059 MB / 0.5111 GB, free: 4.746 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001735/0.422, allocations: 484 kB / 0.5116 GB, free: 4.273 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003252/0.4253, allocations: 1.49 MB / 0.513 GB, free: 2.781 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003611/0.4289, allocations: 3.974 MB / 0.5169 GB, free: 14.79 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004565/0.4335, allocations: 4.428 MB / 0.5213 GB, free: 10.34 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2133/0.6468, allocations: 13.76 MB / 0.5347 GB, free: 31.28 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.6469, allocations: 0 / 0.5347 GB, free: 31.28 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.6469, allocations: 0.875 kB / 0.5347 GB, free: 31.28 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004034/0.6473, allocations: 0 / 0.5347 GB, free: 31.28 MB / 446.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.02635/0.6737, allocations: 10.3 MB / 0.5447 GB, free: 27.82 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.6737, allocations: 9.281 kB / 0.5448 GB, free: 27.82 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001662/0.6754, allocations: 1.139 MB / 0.5459 GB, free: 27.73 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2291/0.9045, allocations: 24.26 MB / 0.5696 GB, free: 24.67 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01552/0.9201, allocations: 8.94 MB / 0.5783 GB, free: 21.85 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001804/0.9203, allocations: 432.4 kB / 0.5787 GB, free: 21.83 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008254/0.9211, allocations: 0.586 MB / 0.5793 GB, free: 21.81 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01833/0.9394, allocations: 16.17 MB / 0.5951 GB, free: 9.793 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001582/0.9396, allocations: 96.39 kB / 0.5952 GB, free: 9.734 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005656/0.9402, allocations: 264.7 kB / 0.5954 GB, free: 9.66 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003054/0.9433, allocations: 2.764 MB / 0.5981 GB, free: 7.25 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01772/0.961, allocations: 12.86 MB / 0.6107 GB, free: 10.66 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.05974/1.021, allocations: 66.44 MB / 0.6755 GB, free: 7.059 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01654/1.037, allocations: 7.599 MB / 0.683 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004221/1.042, allocations: 4.198 MB / 0.6871 GB, free: 11.13 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01367/1.055, allocations: 11.69 MB / 0.6985 GB, free: 15.34 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.029e-05/1.055, allocations: 63.73 kB / 0.6985 GB, free: 15.27 MB / 0.545 GB Notification: Performance of pre-optimization done (n=280): time 3.787e-06/1.055, allocations: 0 / 0.6985 GB, free: 15.27 MB / 0.545 GB Notification: Performance of matching and sorting (n=339): time 0.3/1.355, allocations: 47.38 MB / 0.7448 GB, free: 258.5 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.938e-05/1.355, allocations: 403.7 kB / 0.7452 GB, free: 258 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007811/1.363, allocations: 7.152 MB / 0.7522 GB, free: 255.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005071/1.364, allocations: 75.36 kB / 0.7522 GB, free: 255.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002078/1.366, allocations: 5.174 MB / 0.7573 GB, free: 251.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008549/1.367, allocations: 1.243 MB / 0.7585 GB, free: 250.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001804/1.368, allocations: 1.648 MB / 0.7601 GB, free: 249.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.136e-05/1.369, allocations: 308.4 kB / 0.7604 GB, free: 249.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003973/1.373, allocations: 3.954 MB / 0.7643 GB, free: 248.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005199/1.378, allocations: 8.593 MB / 0.7727 GB, free: 240.6 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009857/1.388, allocations: 13.49 MB / 0.7858 GB, free: 228.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.627e-05/1.388, allocations: 48 kB / 0.7859 GB, free: 228.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.02521/1.413, allocations: 17.16 MB / 0.8026 GB, free: 211.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.365e-05/1.413, allocations: 80 kB / 0.8027 GB, free: 211.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.108e-05/1.413, allocations: 160 kB / 0.8029 GB, free: 211.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01432/1.427, allocations: 5.765 MB / 0.8085 GB, free: 205.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004737/1.432, allocations: 1.754 MB / 0.8102 GB, free: 204 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03036/1.463, allocations: 29.67 MB / 0.8392 GB, free: 173.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006244/1.469, allocations: 0.5188 MB / 0.8397 GB, free: 173.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006886/1.47, allocations: 472 kB / 0.8401 GB, free: 172.9 MB / 0.5606 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.003983/1.473, allocations: 3.466 MB / 0.8435 GB, free: 169.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001079/1.475, allocations: 0.6518 MB / 0.8442 GB, free: 168.8 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01897/1.494, allocations: 11.46 MB / 0.8554 GB, free: 157.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.285e-05/1.494, allocations: 38.5 kB / 0.8554 GB, free: 157.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.105e-05/1.494, allocations: 23.98 kB / 0.8554 GB, free: 157.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-05/1.494, allocations: 15.89 kB / 0.8554 GB, free: 157.2 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03334/1.527, allocations: 24.85 MB / 0.8797 GB, free: 131.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.658e-05/1.527, allocations: 8.094 kB / 0.8797 GB, free: 131.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001497/1.529, allocations: 427.3 kB / 0.8801 GB, free: 131.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01373/1.542, allocations: 5.388 MB / 0.8854 GB, free: 126.1 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006702/1.543, allocations: 60.94 kB / 0.8854 GB, free: 126 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02985/1.573, allocations: 28.43 MB / 0.9132 GB, free: 97.17 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/1.573, allocations: 8.656 kB / 0.9132 GB, free: 97.16 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02424/1.597, allocations: 16.48 MB / 0.9293 GB, free: 80.49 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001836/1.599, allocations: 0.68 MB / 0.93 GB, free: 79.78 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001765/1.601, allocations: 60.88 kB / 0.93 GB, free: 79.72 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003667/1.604, allocations: 267.7 kB / 0.9303 GB, free: 79.46 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001002/1.606, allocations: 249.5 kB / 0.9305 GB, free: 79.22 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002649/1.606, allocations: 88 kB / 0.9306 GB, free: 79.13 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005683/1.611, allocations: 4.616 MB / 0.9351 GB, free: 74.55 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.8e-07/1.611, allocations: 0 / 0.9351 GB, free: 74.55 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008167/1.62, allocations: 1.952 MB / 0.937 GB, free: 72.61 MB / 0.5606 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.02458/1.644, allocations: 17.18 MB / 0.9538 GB, free: 55.22 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01411/1.658, allocations: 10.47 MB / 0.964 GB, free: 44.71 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.062e-05/1.658, allocations: 4 kB / 0.964 GB, free: 44.71 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.006522/1.665, allocations: 4.695 MB / 0.9686 GB, free: 39.96 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005403/1.67, allocations: 1.011 MB / 0.9696 GB, free: 38.96 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3093/1.98, allocations: 117.3 MB / 1.084 GB, free: 174.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004738/1.984, allocations: 5.527 MB / 1.09 GB, free: 168.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005947/1.99, allocations: 2.622 MB / 1.092 GB, free: 165.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003695/1.994, allocations: 3.733 MB / 1.096 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of SimCode: time 1.002e-06/1.994, allocations: 0 / 1.096 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 6.279/8.274, allocations: 158.4 MB / 1.25 GB, free: 4.48 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002413/8.274, allocations: 242.8 kB / 1.251 GB, free: 4.227 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.96/13.23, allocations: 0 / 1.251 GB, free: 4.227 MB / 0.5606 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches