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.0008258/0.0008257, allocations: 90.59 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009471/0.0009467, allocations: 199.6 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.191/1.191, allocations: 227.8 MB / 246.8 MB, free: 11.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001929/0.0001929, allocations: 8 kB / 307.8 MB, free: 0.7227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07558/0.07579, allocations: 51.52 MB / 359.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2224/0.2982, allocations: 108.1 MB / 467.5 MB, free: 14.4 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04163/0.3399, allocations: 20.87 MB / 488.3 MB, free: 9.461 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01637/0.3563, allocations: 0.4948 MB / 488.8 MB, free: 8.965 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002171/0.3585, allocations: 0.7344 MB / 489.6 MB, free: 8.227 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006891/0.3654, allocations: 3.237 MB / 492.8 MB, free: 4.984 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002815/0.3682, allocations: 1.549 MB / 494.4 MB, free: 3.438 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01701/0.3852, allocations: 18.08 MB / 0.5004 GB, free: 1.336 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01303/0.3983, allocations: 10.63 MB / 0.5108 GB, free: 6.59 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004744/0.403, allocations: 2.841 MB / 0.5136 GB, free: 3.738 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005975/0.409, allocations: 4.61 MB / 0.5181 GB, free: 15.11 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009416/0.41, allocations: 295.9 kB / 0.5184 GB, free: 14.82 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002363/0.4124, allocations: 1.299 MB / 0.5196 GB, free: 13.52 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00281/0.4152, allocations: 3.814 MB / 0.5234 GB, free: 9.699 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003434/0.4186, allocations: 4.233 MB / 0.5275 GB, free: 5.434 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2017/0.6203, allocations: 13.81 MB / 0.541 GB, free: 27.45 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.6204, allocations: 0.9062 kB / 0.541 GB, free: 27.45 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.6204, allocations: 0 / 0.541 GB, free: 27.45 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003967/0.6208, allocations: 0.6875 kB / 0.541 GB, free: 27.45 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: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.02255/0.6434, allocations: 8.866 MB / 0.5496 GB, free: 23.93 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.6434, allocations: 11.47 kB / 0.5496 GB, free: 23.93 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002484/0.6459, allocations: 1.192 MB / 0.5508 GB, free: 23.83 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2768/0.9227, allocations: 24.83 MB / 0.5751 GB, free: 17.68 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01779/0.9405, allocations: 9.105 MB / 0.5839 GB, free: 14.8 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003423/0.9409, allocations: 449.6 kB / 0.5844 GB, free: 14.79 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00238/0.9433, allocations: 0.6078 MB / 0.585 GB, free: 14.77 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02494/0.9682, allocations: 16.82 MB / 0.6014 GB, free: 2.148 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002287/0.9685, allocations: 102.7 kB / 0.6015 GB, free: 2.086 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006808/0.9692, allocations: 279.2 kB / 0.6018 GB, free: 2.008 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003541/0.9727, allocations: 2.853 MB / 0.6045 GB, free: 15.68 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02293/0.9957, allocations: 13.34 MB / 0.6176 GB, free: 4.16 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.07429/1.07, allocations: 68.39 MB / 0.6843 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01906/1.089, allocations: 7.933 MB / 0.6921 GB, free: 6.535 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004919/1.094, allocations: 4.312 MB / 0.6963 GB, free: 2.219 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01702/1.111, allocations: 12.05 MB / 0.7081 GB, free: 6.055 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.068e-05/1.111, allocations: 67.56 kB / 0.7081 GB, free: 5.984 MB / 0.545 GB Notification: Performance of pre-optimization done (n=293): time 5.38e-06/1.111, allocations: 0 / 0.7081 GB, free: 5.984 MB / 0.545 GB Notification: Performance of matching and sorting (n=359): time 0.3211/1.432, allocations: 50.71 MB / 0.7577 GB, free: 254.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.381e-05/1.432, allocations: 397.1 kB / 0.758 GB, free: 253.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007946/1.44, allocations: 7.307 MB / 0.7652 GB, free: 250.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005758/1.441, allocations: 86.33 kB / 0.7653 GB, free: 250.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002279/1.443, allocations: 5.343 MB / 0.7705 GB, free: 245.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001003/1.444, allocations: 1.316 MB / 0.7718 GB, free: 244.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007722/1.445, allocations: 0.7208 MB / 0.7725 GB, free: 244.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.373e-05/1.445, allocations: 308.7 kB / 0.7728 GB, free: 243.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004347/1.449, allocations: 4.12 MB / 0.7768 GB, free: 240.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005638/1.455, allocations: 8.87 MB / 0.7854 GB, free: 230 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01147/1.466, allocations: 13.95 MB / 0.7991 GB, free: 214.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-05/1.467, allocations: 48 kB / 0.7991 GB, free: 214.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1106) (initialization): time 0.02889/1.495, allocations: 17.87 MB / 0.8166 GB, free: 196.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.024e-05/1.496, allocations: 79.94 kB / 0.8166 GB, free: 196.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-05/1.496, allocations: 164 kB / 0.8168 GB, free: 196.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01579/1.511, allocations: 6.054 MB / 0.8227 GB, free: 190.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004972/1.516, allocations: 1.829 MB / 0.8245 GB, free: 188.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03291/1.549, allocations: 30.89 MB / 0.8547 GB, free: 157.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007435/1.557, allocations: 0.5538 MB / 0.8552 GB, free: 156.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001534/1.558, allocations: 487.9 kB / 0.8557 GB, free: 156.1 MB / 0.5606 GB 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.005966/1.564, allocations: 3.58 MB / 0.8592 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001258/1.566, allocations: 0.6711 MB / 0.8598 GB, free: 151.8 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02236/1.588, allocations: 12.1 MB / 0.8716 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.593e-05/1.588, allocations: 36 kB / 0.8717 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.228e-05/1.588, allocations: 20 kB / 0.8717 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.885e-05/1.588, allocations: 15.94 kB / 0.8717 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04089/1.629, allocations: 26.01 MB / 0.8971 GB, free: 113.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.281e-05/1.629, allocations: 4 kB / 0.8971 GB, free: 113.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001913/1.631, allocations: 467.3 kB / 0.8975 GB, free: 112.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01573/1.647, allocations: 5.737 MB / 0.9031 GB, free: 106.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005065/1.647, allocations: 60 kB / 0.9032 GB, free: 106.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03272/1.68, allocations: 29.8 MB / 0.9323 GB, free: 76.64 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/1.68, allocations: 4 kB / 0.9323 GB, free: 76.64 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02762/1.708, allocations: 17.41 MB / 0.9493 GB, free: 59.05 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001913/1.71, allocations: 0.6954 MB / 0.95 GB, free: 58.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001776/1.711, allocations: 72.05 kB / 0.9501 GB, free: 58.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003993/1.715, allocations: 280.9 kB / 0.9503 GB, free: 57.98 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008839/1.716, allocations: 262.7 kB / 0.9506 GB, free: 57.72 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003491/1.717, allocations: 92.66 kB / 0.9507 GB, free: 57.63 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.007542/1.724, allocations: 4.706 MB / 0.9553 GB, free: 52.96 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.2e-07/1.724, allocations: 0 / 0.9553 GB, free: 52.96 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007858/1.732, allocations: 2.037 MB / 0.9573 GB, free: 50.93 MB / 0.5606 GB 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.02732/1.759, allocations: 18.11 MB / 0.9749 GB, free: 32.64 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01447/1.774, allocations: 10.89 MB / 0.9856 GB, free: 21.71 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/1.774, allocations: 4 kB / 0.9856 GB, free: 21.7 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.1584/1.932, allocations: 4.946 MB / 0.9904 GB, free: 254.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01057/1.943, allocations: 1.045 MB / 0.9914 GB, free: 254.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.156/2.099, allocations: 122.3 MB / 1.111 GB, free: 146.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007223/2.106, allocations: 5.72 MB / 1.116 GB, free: 140.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.006057/2.112, allocations: 2.717 MB / 1.119 GB, free: 137.6 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003741/2.116, allocations: 3.881 MB / 1.123 GB, free: 133.7 MB / 0.5606 GB Notification: Performance of SimCode: time 5.31e-07/2.116, allocations: 0 / 1.123 GB, free: 133.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3366/2.453, allocations: 162.6 MB / 1.282 GB, free: 232.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001446/2.453, allocations: 239.2 kB / 1.282 GB, free: 232.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.877/7.33, allocations: 3.938 kB / 1.282 GB, free: 232.2 MB / 0.5606 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 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.mat","/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