Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009233/0.0009234, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.196/1.196, allocations: 226.5 MB / 244.7 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007662/0.0007662, allocations: 105.2 kB / 296.7 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002058/0.0002058, allocations: 15.92 kB / 356.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1793/0.1795, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.06754/0.2471, allocations: 93.86 MB / 0.4902 GB, free: 13.56 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.2182/0.4654, allocations: 19.13 MB / 0.5089 GB, free: 240 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01491/0.4803, allocations: 473 kB / 0.5094 GB, free: 240 kB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01232/0.4927, allocations: 4.902 MB / 0.5141 GB, free: 188 kB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03267/0.5254, allocations: 14.58 MB / 0.5284 GB, free: 12.53 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005872/0.5313, allocations: 1.456 MB / 0.5298 GB, free: 12.14 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.3861/0.9173, allocations: 179.2 MB / 0.7048 GB, free: 121 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01084/0.9282, allocations: 9.798 MB / 0.7144 GB, free: 119.9 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004817/0.9331, allocations: 2.925 MB / 0.7173 GB, free: 119.9 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005468/0.9386, allocations: 4.424 MB / 0.7216 GB, free: 119.9 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.001065/0.9396, allocations: 281.7 kB / 0.7219 GB, free: 119.9 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002642/0.9423, allocations: 1.284 MB / 0.7231 GB, free: 119.9 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.002855/0.9452, allocations: 3.67 MB / 0.7267 GB, free: 119.3 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.00371/0.9489, allocations: 3.885 MB / 0.7305 GB, free: 118.3 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.007417/0.9563, allocations: 11.23 MB / 0.7414 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.9563, allocations: 0 / 0.7414 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.344e-06/0.9564, allocations: 0 / 0.7414 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003153/0.9567, allocations: 5.578 kB / 0.7415 GB, free: 108.6 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.01841/0.9751, allocations: 8.595 MB / 0.7498 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.9751, allocations: 17.77 kB / 0.7499 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002315/0.9775, allocations: 1.143 MB / 0.751 GB, free: 99.95 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2667/1.244, allocations: 24.79 MB / 0.7752 GB, free: 76.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01583/1.26, allocations: 8.926 MB / 0.7839 GB, free: 69.58 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003067/1.26, allocations: 423.7 kB / 0.7843 GB, free: 69.35 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001653/1.262, allocations: 0.5896 MB / 0.7849 GB, free: 68.96 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02498/1.287, allocations: 16.2 MB / 0.8007 GB, free: 56.18 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002802/1.287, allocations: 92.92 kB / 0.8008 GB, free: 56.09 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008807/1.288, allocations: 265.6 kB / 0.801 GB, free: 56.02 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003619/1.292, allocations: 2.768 MB / 0.8037 GB, free: 53.73 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02248/1.314, allocations: 12.86 MB / 0.8163 GB, free: 44.54 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.3735/1.688, allocations: 66.48 MB / 0.8812 GB, free: 202.3 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01783/1.706, allocations: 7.633 MB / 0.8887 GB, free: 201.6 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004151/1.71, allocations: 4.192 MB / 0.8928 GB, free: 201.5 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01494/1.725, allocations: 11.69 MB / 0.9042 GB, free: 197.4 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.957e-05/1.725, allocations: 63 kB / 0.9043 GB, free: 197.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=280): time 5.3e-06/1.725, allocations: 2.406 kB / 0.9043 GB, free: 197.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=339): time 0.1538/1.879, allocations: 48.23 MB / 0.9514 GB, free: 160.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.142e-05/1.879, allocations: 398.1 kB / 0.9517 GB, free: 159.8 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008978/1.888, allocations: 7.125 MB / 0.9587 GB, free: 152.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006235/1.889, allocations: 78.8 kB / 0.9588 GB, free: 152.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002633/1.891, allocations: 5.175 MB / 0.9638 GB, free: 147.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001274/1.893, allocations: 1.245 MB / 0.965 GB, free: 146.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007673/1.893, allocations: 165.2 kB / 0.9652 GB, free: 146.1 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004476/1.894, allocations: 0.6453 MB / 0.9658 GB, free: 145.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005164/1.899, allocations: 3.928 MB / 0.9697 GB, free: 141.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006584/1.906, allocations: 8.562 MB / 0.978 GB, free: 130.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01212/1.918, allocations: 13.44 MB / 0.9911 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001134/1.918, allocations: 44 kB / 0.9912 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03179/1.95, allocations: 17.11 MB / 1.008 GB, free: 97.95 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001382/1.95, allocations: 78.5 kB / 1.008 GB, free: 97.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001864/1.95, allocations: 156 kB / 1.008 GB, free: 97.72 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01602/1.966, allocations: 5.761 MB / 1.014 GB, free: 91.94 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005085/1.971, allocations: 1.743 MB / 1.015 GB, free: 90.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03442/2.006, allocations: 29.75 MB / 1.044 GB, free: 60.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006708/2.012, allocations: 0.5266 MB / 1.045 GB, free: 59.52 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001278/2.014, allocations: 475.3 kB / 1.045 GB, free: 59.05 MB / 0.5105 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 (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%) 94,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.005886/2.02, allocations: 3.464 MB / 1.049 GB, free: 55.58 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001451/2.021, allocations: 0.6517 MB / 1.049 GB, free: 54.92 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0223/2.043, allocations: 11.46 MB / 1.061 GB, free: 43.38 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.981e-05/2.043, allocations: 32 kB / 1.061 GB, free: 43.35 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.404e-05/2.044, allocations: 24.5 kB / 1.061 GB, free: 43.33 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.989e-05/2.044, allocations: 15.94 kB / 1.061 GB, free: 43.31 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.224/2.268, allocations: 24.86 MB / 1.085 GB, free: 193.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.869e-05/2.268, allocations: 9.125 kB / 1.085 GB, free: 193.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001937/2.27, allocations: 421.2 kB / 1.085 GB, free: 193.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01614/2.286, allocations: 5.402 MB / 1.091 GB, free: 193.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006026/2.286, allocations: 67.83 kB / 1.091 GB, free: 193.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03188/2.318, allocations: 28.46 MB / 1.119 GB, free: 182.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/2.318, allocations: 10.25 kB / 1.119 GB, free: 182.4 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02731/2.346, allocations: 16.44 MB / 1.135 GB, free: 171.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001678/2.347, allocations: 0.686 MB / 1.135 GB, free: 171.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001653/2.349, allocations: 60 kB / 1.135 GB, free: 171.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00386/2.353, allocations: 279.3 kB / 1.136 GB, free: 171 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001121/2.354, allocations: 241.7 kB / 1.136 GB, free: 170.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004456/2.355, allocations: 88 kB / 1.136 GB, free: 170.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006837/2.361, allocations: 4.577 MB / 1.14 GB, free: 166.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.11e-07/2.361, allocations: 0 / 1.14 GB, free: 166.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008395/2.37, allocations: 1.973 MB / 1.142 GB, free: 164.2 MB / 0.5105 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 (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%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.02703/2.397, allocations: 17.17 MB / 1.159 GB, free: 147.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01426/2.411, allocations: 10.42 MB / 1.169 GB, free: 136.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.746e-06/2.411, allocations: 0 / 1.169 GB, free: 136.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007109/2.418, allocations: 4.671 MB / 1.174 GB, free: 132.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01278/2.431, allocations: 1.016 MB / 1.175 GB, free: 131.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1232/2.554, allocations: 80.5 MB / 1.253 GB, free: 44.73 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007455/2.562, allocations: 5.532 MB / 1.259 GB, free: 39.16 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004522/2.566, allocations: 3.795 MB / 1.263 GB, free: 35.36 MB / 0.5105 GB Notification: Performance of SimCode: time 7.31e-07/2.566, allocations: 0 / 1.263 GB, free: 35.36 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 12.29/14.86, allocations: 236.7 MB / 1.494 GB, free: 164.9 MB / 0.5105 GB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches