Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_3_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_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 4.0.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 114.5 kB / 17.73 MB, free: 5.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 187 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.333/1.333, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001617/0.001618, allocations: 55.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0867/0.08833, allocations: 46.62 MB / 374.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.1805/0.2689, allocations: 19.5 MB / 394.1 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01396/0.2829, allocations: 5.999 MB / 400.1 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004955/0.2879, allocations: 156.4 kB / 400.3 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01157/0.2996, allocations: 5.857 MB / 406.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01012/0.3097, allocations: 3.361 MB / 409.5 MB, free: 8.348 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004424/0.3142, allocations: 1.574 MB / 411.1 MB, free: 7.289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01706/0.3312, allocations: 11.36 MB / 422.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01001/0.3413, allocations: 7.671 MB / 430.1 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007208/0.3485, allocations: 3.579 MB / 433.7 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00843/0.357, allocations: 4.764 MB / 438.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002271/0.3593, allocations: 0.7109 MB / 439.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004628/0.364, allocations: 1.678 MB / 440.9 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005703/0.3697, allocations: 4.205 MB / 445.1 MB, free: 9.246 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009043/0.3788, allocations: 4.803 MB / 449.9 MB, free: 4.418 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01996/0.3987, allocations: 14.48 MB / 464.3 MB, free: 5.879 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.061e-05/0.3988, allocations: 4 kB / 464.4 MB, free: 5.875 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.119e-06/0.3988, allocations: 0 / 464.4 MB, free: 5.875 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000499/0.3993, allocations: 3.938 kB / 464.4 MB, free: 5.871 MB / 382.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.03128/0.4306, allocations: 10.65 MB / 475 MB, free: 11.11 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.4307, allocations: 8.031 kB / 475 MB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003835/0.4345, allocations: 1.14 MB / 476.2 MB, free: 9.949 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3072/0.7418, allocations: 24.3 MB / 0.4887 GB, free: 1.613 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02443/0.7663, allocations: 10.77 MB / 0.4992 GB, free: 6.754 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004904/0.7668, allocations: 431.4 kB / 0.4997 GB, free: 6.332 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002276/0.7691, allocations: 0.5893 MB / 0.5002 GB, free: 5.742 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03344/0.8025, allocations: 16.17 MB / 0.516 GB, free: 4.52 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004139/0.803, allocations: 99.3 kB / 0.5161 GB, free: 4.422 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001738/0.8048, allocations: 263.8 kB / 0.5164 GB, free: 4.164 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004966/0.8097, allocations: 2.772 MB / 0.5191 GB, free: 1.391 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02913/0.8389, allocations: 12.86 MB / 0.5316 GB, free: 4.512 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.3821/1.221, allocations: 66.22 MB / 0.5963 GB, free: 100 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01815/1.239, allocations: 7.597 MB / 0.6037 GB, free: 97.56 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004313/1.244, allocations: 4.199 MB / 0.6078 GB, free: 95.77 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01505/1.259, allocations: 11.73 MB / 0.6193 GB, free: 89.55 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.279e-05/1.259, allocations: 66.34 kB / 0.6193 GB, free: 89.49 MB / 478.1 MB Notification: Performance of pre-optimization done (n=280): time 5.48e-06/1.259, allocations: 3.156 kB / 0.6193 GB, free: 89.49 MB / 478.1 MB Notification: Performance of matching and sorting (n=339): time 0.1527/1.411, allocations: 46.61 MB / 0.6649 GB, free: 49.57 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.201e-05/1.412, allocations: 402.1 kB / 0.6652 GB, free: 49.09 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008115/1.42, allocations: 7.263 MB / 0.6723 GB, free: 41.95 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007395/1.42, allocations: 77.7 kB / 0.6724 GB, free: 41.87 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002493/1.423, allocations: 5.351 MB / 0.6776 GB, free: 37.12 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001267/1.424, allocations: 1.306 MB / 0.6789 GB, free: 35.83 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001917/1.426, allocations: 1.663 MB / 0.6805 GB, free: 34.16 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.834e-05/1.426, allocations: 301.1 kB / 0.6808 GB, free: 33.86 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004219/1.43, allocations: 3.959 MB / 0.6847 GB, free: 29.89 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006173/1.437, allocations: 8.579 MB / 0.6931 GB, free: 19.03 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01231/1.449, allocations: 13.49 MB / 0.7062 GB, free: 3.258 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001154/1.449, allocations: 44 kB / 0.7063 GB, free: 3.215 MB / 478.1 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03699/1.486, allocations: 17.19 MB / 0.7231 GB, free: 1.957 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002096/1.486, allocations: 76 kB / 0.7231 GB, free: 1.883 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000284/1.487, allocations: 156 kB / 0.7233 GB, free: 1.73 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01912/1.506, allocations: 5.772 MB / 0.7289 GB, free: 11.95 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006248/1.512, allocations: 1.755 MB / 0.7306 GB, free: 10.19 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2333/1.745, allocations: 31.66 MB / 0.7616 GB, free: 149.9 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007392/1.753, allocations: 0.5235 MB / 0.7621 GB, free: 149.7 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001542/1.754, allocations: 473.8 kB / 0.7625 GB, free: 149.7 MB / 0.4982 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 (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 (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.005848/1.76, allocations: 3.48 MB / 0.7659 GB, free: 148.4 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00149/1.762, allocations: 0.6954 MB / 0.7666 GB, free: 148.4 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02241/1.784, allocations: 11.47 MB / 0.7778 GB, free: 144.6 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.643e-05/1.784, allocations: 38.53 kB / 0.7778 GB, free: 144.6 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.128e-05/1.784, allocations: 15.53 kB / 0.7779 GB, free: 144.6 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.02e-05/1.784, allocations: 19.16 kB / 0.7779 GB, free: 144.6 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04317/1.828, allocations: 24.76 MB / 0.8021 GB, free: 128.3 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.142e-05/1.828, allocations: 4 kB / 0.8021 GB, free: 128.3 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001908/1.83, allocations: 430.9 kB / 0.8025 GB, free: 127.9 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01554/1.845, allocations: 5.382 MB / 0.8077 GB, free: 122.6 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000749/1.846, allocations: 65.19 kB / 0.8078 GB, free: 122.5 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0349/1.881, allocations: 30.35 MB / 0.8374 GB, free: 92.02 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.977e-06/1.881, allocations: 16.44 kB / 0.8375 GB, free: 92.01 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02755/1.909, allocations: 16.5 MB / 0.8536 GB, free: 75.64 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003727/1.912, allocations: 1.348 MB / 0.8549 GB, free: 74.28 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002097/1.914, allocations: 64 kB / 0.8549 GB, free: 74.21 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004296/1.919, allocations: 263.6 kB / 0.8552 GB, free: 73.96 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00113/1.92, allocations: 242.5 kB / 0.8554 GB, free: 73.72 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005603/1.921, allocations: 88 kB / 0.8555 GB, free: 73.64 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.008009/1.929, allocations: 4.692 MB / 0.8601 GB, free: 68.98 MB / 0.4982 GB Notification: Performance of sort global known variables: time 2.01e-07/1.929, allocations: 0 / 0.8601 GB, free: 68.98 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.009428/1.938, allocations: 1.977 MB / 0.862 GB, free: 67.01 MB / 0.4982 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.02933/1.967, allocations: 17.19 MB / 0.8788 GB, free: 49.69 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.0158/1.983, allocations: 10.51 MB / 0.8891 GB, free: 39.16 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.268e-05/1.983, allocations: 4 kB / 0.8891 GB, free: 39.16 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.007859/1.991, allocations: 4.7 MB / 0.8937 GB, free: 34.42 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009125/2, allocations: 1.091 MB / 0.8947 GB, free: 33.38 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3459/2.346, allocations: 92.14 MB / 0.9847 GB, free: 143.7 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007191/2.354, allocations: 5.558 MB / 0.9901 GB, free: 138.1 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.005431/2.359, allocations: 2.63 MB / 0.9927 GB, free: 135.5 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004088/2.363, allocations: 3.717 MB / 0.9963 GB, free: 131.8 MB / 0.5138 GB Notification: Performance of SimCode: time 7.41e-07/2.363, allocations: 0 / 0.9963 GB, free: 131.8 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5208/2.884, allocations: 158.2 MB / 1.151 GB, free: 157.7 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 38.93/41.81, allocations: 9.188 kB / 1.151 GB, free: 157.7 MB / 0.5138 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches