Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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.Engine1b_analytic,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",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.002507/0.002511, allocations: 187.9 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.164/2.164, allocations: 205.4 MB / 222.5 MB, free: 13.84 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.001154/0.001153, allocations: 102.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004001/0.0004003, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09993/0.1004, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.4152/0.5156, allocations: 97.89 MB / 472.5 MB, free: 10.27 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.06746/0.5832, allocations: 22.5 MB / 495 MB, free: 3.715 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02282/0.606, allocations: 0.4987 MB / 495.5 MB, free: 3.215 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01815/0.6242, allocations: 4.899 MB / 0.4887 GB, free: 14.29 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0541/0.6784, allocations: 13.88 MB / 0.5023 GB, free: 384 kB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0104/0.6888, allocations: 1.689 MB / 0.5039 GB, free: 14.69 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.5394/1.228, allocations: 78.11 MB / 0.5802 GB, free: 24.91 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02274/1.251, allocations: 12.69 MB / 0.5926 GB, free: 15.9 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006174/1.257, allocations: 2.642 MB / 0.5952 GB, free: 14.21 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007511/1.265, allocations: 3.545 MB / 0.5986 GB, free: 11.7 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002573/1.267, allocations: 340 kB / 0.5989 GB, free: 11.36 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005524/1.273, allocations: 1.297 MB / 0.6002 GB, free: 10.29 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006677/1.28, allocations: 3.923 MB / 0.604 GB, free: 7.434 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00401/1.284, allocations: 1.88 MB / 0.6059 GB, free: 6.762 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02026/1.304, allocations: 14.34 MB / 0.6199 GB, free: 10.31 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/1.304, allocations: 0 / 0.6199 GB, free: 10.31 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.627e-06/1.304, allocations: 0 / 0.6199 GB, free: 10.31 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005479/1.305, allocations: 0 / 0.6199 GB, free: 10.31 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.04462/1.349, allocations: 10.16 MB / 0.6298 GB, free: 0.9844 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/1.349, allocations: 12.03 kB / 0.6298 GB, free: 0.9727 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005251/1.355, allocations: 1.337 MB / 0.6311 GB, free: 196 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.7504/2.105, allocations: 30.06 MB / 0.6605 GB, free: 4.023 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.035/2.14, allocations: 10.19 MB / 0.6704 GB, free: 12.87 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007112/2.141, allocations: 0.5211 MB / 0.6709 GB, free: 12.57 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003861/2.145, allocations: 0.723 MB / 0.6716 GB, free: 12.1 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06387/2.209, allocations: 19.43 MB / 0.6906 GB, free: 13.34 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005725/2.209, allocations: 98.16 kB / 0.6907 GB, free: 13.29 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003265/2.213, allocations: 321 kB / 0.691 GB, free: 13.2 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007913/2.221, allocations: 2.816 MB / 0.6938 GB, free: 10.93 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05735/2.278, allocations: 15.82 MB / 0.7092 GB, free: 120 kB / 490.7 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.6853/2.963, allocations: 73.08 MB / 0.7806 GB, free: 140.5 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03734/3.001, allocations: 8.071 MB / 0.7885 GB, free: 135.2 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0346/3.036, allocations: 14.38 MB / 0.8025 GB, free: 120.4 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.165e-05/3.036, allocations: 68.53 kB / 0.8026 GB, free: 120.3 MB / 490.8 MB Notification: Performance of pre-optimization done (n=308): time 6.803e-06/3.036, allocations: 0 / 0.8026 GB, free: 120.3 MB / 490.8 MB Notification: Performance of matching and sorting (n=408): time 0.2921/3.328, allocations: 48.34 MB / 0.8498 GB, free: 72.12 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001318/3.328, allocations: 406.6 kB / 0.8501 GB, free: 71.63 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01989/3.348, allocations: 8.401 MB / 0.8584 GB, free: 63.23 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001136/3.349, allocations: 94.64 kB / 0.8584 GB, free: 63.14 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00499/3.354, allocations: 5.449 MB / 0.8638 GB, free: 57.68 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002437/3.356, allocations: 1.477 MB / 0.8652 GB, free: 56.22 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00144/3.358, allocations: 184 kB / 0.8654 GB, free: 56.04 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0007468/3.359, allocations: 0.6954 MB / 0.8661 GB, free: 55.33 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01114/3.37, allocations: 4.313 MB / 0.8703 GB, free: 51.01 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01411/3.384, allocations: 9.27 MB / 0.8793 GB, free: 39.3 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01486/3.399, allocations: 6.206 MB / 0.8854 GB, free: 33.08 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001505/3.399, allocations: 48 kB / 0.8854 GB, free: 33.04 MB / 490.8 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.05718/3.456, allocations: 17.27 MB / 0.9023 GB, free: 15.73 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001221/3.457, allocations: 83.19 kB / 0.9024 GB, free: 15.65 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002253/3.457, allocations: 172 kB / 0.9025 GB, free: 15.48 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02784/3.485, allocations: 5.032 MB / 0.9075 GB, free: 10.44 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01157/3.496, allocations: 1.946 MB / 0.9094 GB, free: 8.492 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4556/3.952, allocations: 27.89 MB / 0.9366 GB, free: 167.2 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01202/3.964, allocations: 0.5456 MB / 0.9371 GB, free: 167.1 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002064/3.966, allocations: 0.5015 MB / 0.9376 GB, free: 167 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 780 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.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],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.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 (1050): * Single equations (assignments): 1045 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01062/3.977, allocations: 4.093 MB / 0.9416 GB, free: 165.5 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00204/3.979, allocations: 0.715 MB / 0.9423 GB, free: 165.5 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04336/4.022, allocations: 11.41 MB / 0.9535 GB, free: 161.3 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.098e-05/4.022, allocations: 40.56 kB / 0.9535 GB, free: 161.3 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-05/4.022, allocations: 26.22 kB / 0.9535 GB, free: 161.3 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001043/4.022, allocations: 21.61 kB / 0.9535 GB, free: 161.3 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0801/4.103, allocations: 24.69 MB / 0.9776 GB, free: 147.6 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.007e-05/4.103, allocations: 8 kB / 0.9777 GB, free: 147.6 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004683/4.107, allocations: 0.53 MB / 0.9782 GB, free: 147 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02593/4.133, allocations: 4.451 MB / 0.9825 GB, free: 142.6 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000884/4.134, allocations: 78.17 kB / 0.9826 GB, free: 142.6 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05511/4.189, allocations: 24.52 MB / 1.007 GB, free: 118.1 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.036e-05/4.19, allocations: 15.89 kB / 1.007 GB, free: 118.1 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04933/4.239, allocations: 18.29 MB / 1.024 GB, free: 99.83 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005335/4.244, allocations: 1.459 MB / 1.026 GB, free: 98.35 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002354/4.247, allocations: 76.86 kB / 1.026 GB, free: 98.27 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006871/4.254, allocations: 269.9 kB / 1.026 GB, free: 98.02 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00191/4.256, allocations: 286.5 kB / 1.026 GB, free: 97.74 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005467/4.256, allocations: 108 kB / 1.027 GB, free: 97.63 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.01356/4.27, allocations: 5.515 MB / 1.032 GB, free: 92.13 MB / 490.8 MB Notification: Performance of sort global known variables: time 8.82e-07/4.27, allocations: 0 / 1.032 GB, free: 92.13 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01264/4.282, allocations: 2.23 MB / 1.034 GB, free: 89.91 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (284): * Single equations (assignments): 280 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05302/4.335, allocations: 20.23 MB / 1.054 GB, free: 69.45 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.02444/4.36, allocations: 10.85 MB / 1.064 GB, free: 58.66 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.415e-05/4.36, allocations: 4 kB / 1.064 GB, free: 58.66 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01037/4.37, allocations: 4.564 MB / 1.069 GB, free: 54.07 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008873/4.379, allocations: 1.048 MB / 1.07 GB, free: 53.04 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4062/4.786, allocations: 158 MB / 1.224 GB, free: 64.63 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01646/4.802, allocations: 6.576 MB / 1.231 GB, free: 63.68 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009647/4.812, allocations: 4.355 MB / 1.235 GB, free: 62.86 MB / 490.8 MB Notification: Performance of SimCode: time 1.513e-06/4.812, allocations: 0 / 1.235 GB, free: 62.86 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.292/11.1, allocations: 208.1 MB / 1.438 GB, free: 67.19 MB / 490.8 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat