Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0008579/0.000858, allocations: 173.7 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.199/1.199, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007478/0.0007476, allocations: 90.02 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000281/0.0002813, allocations: 12 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2057/0.206, allocations: 47.58 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.06363/0.2697, allocations: 93.9 MB / 469.1 MB, free: 2.562 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0378/0.3076, allocations: 19.14 MB / 488.2 MB, free: 15.36 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01452/0.3221, allocations: 470.8 kB / 488.7 MB, free: 14.89 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01238/0.3345, allocations: 4.903 MB / 493.6 MB, free: 9.969 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.204/0.5385, allocations: 14.6 MB / 0.4963 GB, free: 5.176 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00521/0.5437, allocations: 1.467 MB / 0.4977 GB, free: 5.141 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.1043/0.6481, allocations: 98.28 MB / 0.5937 GB, free: 14.68 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01146/0.6596, allocations: 9.933 MB / 0.6034 GB, free: 7.453 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004342/0.664, allocations: 2.946 MB / 0.6063 GB, free: 5.426 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005047/0.669, allocations: 4.456 MB / 0.6106 GB, free: 2.188 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00098/0.67, allocations: 276 kB / 0.6109 GB, free: 1.918 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002611/0.6727, allocations: 1.289 MB / 0.6122 GB, free: 0.8828 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002976/0.6756, allocations: 3.705 MB / 0.6158 GB, free: 14.11 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004031/0.6797, allocations: 3.91 MB / 0.6196 GB, free: 12.63 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009275/0.689, allocations: 11.29 MB / 0.6306 GB, free: 2.805 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.689, allocations: 0 / 0.6306 GB, free: 2.805 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.689, allocations: 0 / 0.6306 GB, free: 2.805 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003104/0.6893, allocations: 0 / 0.6306 GB, free: 2.805 MB / 458.7 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.02018/0.7095, allocations: 8.645 MB / 0.6391 GB, free: 10.85 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.7096, allocations: 8.031 kB / 0.6391 GB, free: 10.84 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002271/0.7119, allocations: 1.142 MB / 0.6402 GB, free: 10.16 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2644/0.9763, allocations: 24.79 MB / 0.6644 GB, free: 2.516 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2672/1.244, allocations: 10.53 MB / 0.6747 GB, free: 209.5 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003394/1.244, allocations: 429.2 kB / 0.6751 GB, free: 209.4 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001563/1.246, allocations: 0.582 MB / 0.6757 GB, free: 209.2 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02246/1.268, allocations: 16.2 MB / 0.6915 GB, free: 199.9 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001883/1.268, allocations: 102.9 kB / 0.6916 GB, free: 199.8 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005565/1.269, allocations: 264.7 kB / 0.6918 GB, free: 199.6 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003375/1.272, allocations: 2.76 MB / 0.6945 GB, free: 196.8 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02032/1.292, allocations: 12.87 MB / 0.7071 GB, free: 184 MB / 490.8 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.06345/1.356, allocations: 66.49 MB / 0.772 GB, free: 116.1 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01672/1.373, allocations: 7.604 MB / 0.7795 GB, free: 108.4 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004147/1.377, allocations: 4.19 MB / 0.7835 GB, free: 104.2 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0154/1.392, allocations: 11.73 MB / 0.795 GB, free: 92.34 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.421e-05/1.392, allocations: 76.47 kB / 0.7951 GB, free: 92.27 MB / 490.8 MB Notification: Performance of pre-optimization done (n=280): time 6.251e-06/1.392, allocations: 0 / 0.7951 GB, free: 92.27 MB / 490.8 MB Notification: Performance of matching and sorting (n=339): time 0.1537/1.546, allocations: 47.01 MB / 0.841 GB, free: 45.4 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.57e-05/1.546, allocations: 406 kB / 0.8414 GB, free: 44.91 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008846/1.555, allocations: 7.213 MB / 0.8484 GB, free: 37.73 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006069/1.556, allocations: 77.7 kB / 0.8485 GB, free: 37.65 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002275/1.558, allocations: 5.172 MB / 0.8535 GB, free: 32.42 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001012/1.559, allocations: 1.245 MB / 0.8547 GB, free: 31.16 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003935/1.559, allocations: 164 kB / 0.8549 GB, free: 31 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0002781/1.56, allocations: 0.6492 MB / 0.8555 GB, free: 30.34 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004243/1.564, allocations: 3.92 MB / 0.8594 GB, free: 26.41 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005422/1.569, allocations: 8.556 MB / 0.8677 GB, free: 15.57 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.154/1.723, allocations: 13.43 MB / 0.8808 GB, free: 189.1 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001225/1.724, allocations: 45.41 kB / 0.8809 GB, free: 189.1 MB / 490.8 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03118/1.755, allocations: 17.1 MB / 0.8976 GB, free: 185.1 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.159e-05/1.755, allocations: 82.53 kB / 0.8977 GB, free: 185.1 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001066/1.755, allocations: 158.8 kB / 0.8978 GB, free: 185.1 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0151/1.77, allocations: 5.794 MB / 0.9035 GB, free: 184.1 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004748/1.775, allocations: 1.748 MB / 0.9052 GB, free: 183.9 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03239/1.807, allocations: 29.75 MB / 0.9342 GB, free: 159.3 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006219/1.814, allocations: 0.5289 MB / 0.9347 GB, free: 158.8 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009716/1.815, allocations: 472 kB / 0.9352 GB, free: 158.3 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * Number of states: 0 () * Number of discrete variables: 66 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[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,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.004656/1.819, allocations: 3.475 MB / 0.9386 GB, free: 154.9 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001107/1.82, allocations: 0.6609 MB / 0.9392 GB, free: 154.6 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02044/1.841, allocations: 11.46 MB / 0.9504 GB, free: 143.1 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.138e-05/1.841, allocations: 32 kB / 0.9505 GB, free: 143.1 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.541e-05/1.841, allocations: 24 kB / 0.9505 GB, free: 143.1 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-05/1.841, allocations: 15.94 kB / 0.9505 GB, free: 143 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03685/1.878, allocations: 24.88 MB / 0.9748 GB, free: 117.9 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.674e-05/1.878, allocations: 4 kB / 0.9748 GB, free: 117.9 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001725/1.88, allocations: 423.3 kB / 0.9752 GB, free: 117.4 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01488/1.894, allocations: 5.411 MB / 0.9805 GB, free: 112.1 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000381/1.895, allocations: 63.98 kB / 0.9805 GB, free: 112 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03045/1.925, allocations: 28.46 MB / 1.008 GB, free: 83.41 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/1.925, allocations: 11.88 kB / 1.008 GB, free: 83.4 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0246/1.95, allocations: 16.43 MB / 1.024 GB, free: 66.86 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002768/1.953, allocations: 1.316 MB / 1.026 GB, free: 65.52 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00122/1.954, allocations: 63.98 kB / 1.026 GB, free: 65.45 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003168/1.957, allocations: 270.6 kB / 1.026 GB, free: 65.19 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001016/1.958, allocations: 242.6 kB / 1.026 GB, free: 64.95 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002578/1.958, allocations: 88 kB / 1.026 GB, free: 64.87 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.006066/1.964, allocations: 4.641 MB / 1.031 GB, free: 60.26 MB / 490.8 MB Notification: Performance of sort global known variables: time 2.4e-07/1.964, allocations: 0 / 1.031 GB, free: 60.26 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.006484/1.971, allocations: 1.982 MB / 1.033 GB, free: 58.29 MB / 490.8 MB 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.02475/1.996, allocations: 17.15 MB / 1.05 GB, free: 40.94 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01336/2.009, allocations: 10.42 MB / 1.06 GB, free: 30.48 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/2.009, allocations: 0 / 1.06 GB, free: 30.48 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006539/2.016, allocations: 4.663 MB / 1.064 GB, free: 25.77 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01096/2.027, allocations: 1.023 MB / 1.065 GB, free: 24.75 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2576/2.284, allocations: 81.16 MB / 1.145 GB, free: 130.4 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006682/2.291, allocations: 5.564 MB / 1.15 GB, free: 124.8 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003897/2.295, allocations: 3.768 MB / 1.154 GB, free: 121 MB / 490.8 MB Notification: Performance of SimCode: time 7.72e-07/2.295, allocations: 0 / 1.154 GB, free: 121 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 12.02/14.32, allocations: 237.9 MB / 1.386 GB, free: 78.96 MB / 490.8 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches