Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008766/0.0008766, allocations: 195 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.204/1.204, allocations: 226.5 MB / 244.7 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007594/0.0007593, allocations: 100.5 kB / 296.7 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002154/0.0002155, allocations: 4 kB / 356.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.181/0.1813, allocations: 51.3 MB / 408.1 MB, free: 27.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.07146/0.2528, allocations: 101.2 MB / 0.4974 GB, free: 6.074 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.2029/0.4557, allocations: 20.42 MB / 0.5174 GB, free: 15.95 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01615/0.4718, allocations: 0.4967 MB / 0.5178 GB, free: 15.95 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01161/0.4835, allocations: 5.29 MB / 0.523 GB, free: 15.61 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0337/0.5172, allocations: 15.63 MB / 0.5383 GB, free: 9.223 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006233/0.5235, allocations: 1.546 MB / 0.5398 GB, free: 8.789 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.3872/0.9107, allocations: 179.6 MB / 0.7152 GB, free: 115.7 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01131/0.922, allocations: 10.26 MB / 0.7252 GB, free: 114.6 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003954/0.926, allocations: 3.088 MB / 0.7282 GB, free: 113.9 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004576/0.9306, allocations: 4.613 MB / 0.7327 GB, free: 111.3 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0008822/0.9315, allocations: 288 kB / 0.733 GB, free: 111 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002368/0.9339, allocations: 1.301 MB / 0.7343 GB, free: 109.9 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.00254/0.9364, allocations: 3.807 MB / 0.738 GB, free: 107.1 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.003576/0.94, allocations: 4.034 MB / 0.7419 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.007671/0.9477, allocations: 11.62 MB / 0.7533 GB, free: 95.46 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.9477, allocations: 0 / 0.7533 GB, free: 95.46 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.783e-06/0.9477, allocations: 0 / 0.7533 GB, free: 95.46 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002356/0.948, allocations: 4 kB / 0.7533 GB, free: 95.46 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.018/0.966, allocations: 8.901 MB / 0.762 GB, free: 87.27 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.966, allocations: 8.031 kB / 0.762 GB, free: 87.26 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001748/0.9678, allocations: 1.191 MB / 0.7631 GB, free: 86.56 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2661/1.234, allocations: 24.84 MB / 0.7874 GB, free: 62.87 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01588/1.25, allocations: 9.109 MB / 0.7963 GB, free: 56.23 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002183/1.25, allocations: 451.5 kB / 0.7967 GB, free: 55.99 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001058/1.251, allocations: 0.6131 MB / 0.7973 GB, free: 55.58 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02307/1.274, allocations: 16.77 MB / 0.8137 GB, free: 42.53 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002414/1.274, allocations: 98.73 kB / 0.8138 GB, free: 42.46 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006602/1.275, allocations: 280.9 kB / 0.8141 GB, free: 42.39 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003474/1.279, allocations: 2.857 MB / 0.8169 GB, free: 40.05 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02163/1.3, allocations: 13.27 MB / 0.8298 GB, free: 30.86 MB / 0.4948 GB 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.3775/1.678, allocations: 68.39 MB / 0.8966 GB, free: 216.1 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01785/1.696, allocations: 7.955 MB / 0.9044 GB, free: 215.4 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004097/1.7, allocations: 4.312 MB / 0.9086 GB, free: 215.4 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0139/1.714, allocations: 12.05 MB / 0.9204 GB, free: 210.7 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/1.714, allocations: 64.94 kB / 0.9204 GB, free: 210.6 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=294): time 5.491e-06/1.714, allocations: 3.094 kB / 0.9204 GB, free: 210.6 MB / 0.5262 GB Notification: Performance of matching and sorting (n=360): time 0.1583/1.872, allocations: 50.78 MB / 0.97 GB, free: 170 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/1.872, allocations: 402.2 kB / 0.9704 GB, free: 169.6 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008063/1.88, allocations: 7.263 MB / 0.9775 GB, free: 162.3 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0007103/1.881, allocations: 81.7 kB / 0.9776 GB, free: 162.3 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.002313/1.883, allocations: 5.35 MB / 0.9828 GB, free: 156.9 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001132/1.885, allocations: 1.313 MB / 0.9841 GB, free: 155.6 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00043/1.885, allocations: 172 kB / 0.9842 GB, free: 155.5 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0002713/1.885, allocations: 0.6649 MB / 0.9849 GB, free: 154.8 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004495/1.89, allocations: 4.092 MB / 0.9889 GB, free: 150.7 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005844/1.896, allocations: 8.83 MB / 0.9975 GB, free: 139.7 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.012/1.908, allocations: 13.93 MB / 1.011 GB, free: 124 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.859e-05/1.908, allocations: 44 kB / 1.011 GB, free: 124 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.03135/1.939, allocations: 17.81 MB / 1.029 GB, free: 106.1 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 9.019e-05/1.939, allocations: 72 kB / 1.029 GB, free: 106 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001216/1.939, allocations: 164 kB / 1.029 GB, free: 105.9 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01635/1.956, allocations: 6.059 MB / 1.035 GB, free: 99.81 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00516/1.961, allocations: 1.831 MB / 1.036 GB, free: 97.98 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03322/1.994, allocations: 30.89 MB / 1.067 GB, free: 66.68 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006566/2.001, allocations: 0.5461 MB / 1.067 GB, free: 66.13 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008686/2.002, allocations: 489.1 kB / 1.068 GB, free: 65.66 MB / 0.5262 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 (968): * Single equations (assignments): 962 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 97,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.004886/2.007, allocations: 3.58 MB / 1.071 GB, free: 62.07 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001081/2.008, allocations: 0.675 MB / 1.072 GB, free: 61.38 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02187/2.03, allocations: 12.08 MB / 1.084 GB, free: 49.23 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.022e-05/2.03, allocations: 36 kB / 1.084 GB, free: 49.2 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-05/2.03, allocations: 20 kB / 1.084 GB, free: 49.18 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.902e-05/2.03, allocations: 15.94 kB / 1.084 GB, free: 49.16 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03955/2.069, allocations: 26.02 MB / 1.109 GB, free: 22.66 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.664e-05/2.069, allocations: 4 kB / 1.109 GB, free: 22.66 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002041/2.071, allocations: 471.3 kB / 1.11 GB, free: 22.2 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1954/2.267, allocations: 5.735 MB / 1.115 GB, free: 210.1 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005747/2.267, allocations: 59.75 kB / 1.115 GB, free: 210.1 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03352/2.301, allocations: 29.75 MB / 1.144 GB, free: 198.7 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/2.301, allocations: 11.31 kB / 1.144 GB, free: 198.7 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0265/2.328, allocations: 17.38 MB / 1.161 GB, free: 188.7 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002786/2.33, allocations: 1.361 MB / 1.163 GB, free: 187.7 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008357/2.331, allocations: 64 kB / 1.163 GB, free: 187.6 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002938/2.334, allocations: 281 kB / 1.163 GB, free: 187.3 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001124/2.335, allocations: 262.4 kB / 1.163 GB, free: 187.1 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002613/2.336, allocations: 88 kB / 1.163 GB, free: 187 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.0056/2.341, allocations: 4.671 MB / 1.168 GB, free: 182.4 MB / 0.5262 GB Notification: Performance of sort global known variables: time 2.6e-07/2.341, allocations: 0 / 1.168 GB, free: 182.4 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.006842/2.348, allocations: 2.06 MB / 1.17 GB, free: 180.3 MB / 0.5262 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 (232): * Single equations (assignments): 226 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 90,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.02654/2.375, allocations: 18.08 MB / 1.187 GB, free: 162.5 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.01426/2.389, allocations: 10.86 MB / 1.198 GB, free: 151.7 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 8.907e-06/2.389, allocations: 4 kB / 1.198 GB, free: 151.7 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.00705/2.396, allocations: 4.947 MB / 1.203 GB, free: 146.7 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01162/2.408, allocations: 1.044 MB / 1.204 GB, free: 145.7 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1212/2.529, allocations: 84.02 MB / 1.286 GB, free: 55.71 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006756/2.536, allocations: 5.74 MB / 1.292 GB, free: 49.93 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004248/2.54, allocations: 3.948 MB / 1.295 GB, free: 45.98 MB / 0.5262 GB Notification: Performance of SimCode: time 6.52e-07/2.54, allocations: 0 / 1.295 GB, free: 45.98 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 12.37/14.91, allocations: 245.8 MB / 1.535 GB, free: 166.2 MB / 0.5262 GB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches