Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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.Engine1b_analytic,fileNamePrefix="Modelica_3_2_3_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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009152/0.0009152, allocations: 98.34 kB / 16.95 MB, free: 6.457 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.001026/0.001026, allocations: 182.6 kB / 17.84 MB, free: 6.008 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.466/1.466, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004631/0.0004631, allocations: 12 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09277/0.09324, allocations: 47.57 MB / 328.4 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.2894/0.3827, allocations: 103.8 MB / 432.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.05575/0.4385, allocations: 21.46 MB / 453.7 MB, free: 9.129 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0279/0.4664, allocations: 0.5026 MB / 454.2 MB, free: 8.625 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01936/0.4858, allocations: 5.338 MB / 459.6 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04641/0.5323, allocations: 15.79 MB / 475.4 MB, free: 3.414 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009085/0.5414, allocations: 1.703 MB / 477.1 MB, free: 1.711 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.4043/0.9457, allocations: 99.38 MB / 0.5629 GB, free: 64.3 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01877/0.9645, allocations: 12.78 MB / 0.5754 GB, free: 56.38 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007312/0.9719, allocations: 3.25 MB / 0.5786 GB, free: 54.18 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009703/0.9816, allocations: 5.067 MB / 0.5835 GB, free: 50.51 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003192/0.9849, allocations: 340 kB / 0.5839 GB, free: 50.18 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005691/0.9906, allocations: 1.341 MB / 0.5852 GB, free: 49.08 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007254/0.9979, allocations: 4.236 MB / 0.5893 GB, free: 45.92 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005821/1.004, allocations: 1.878 MB / 0.5911 GB, free: 45.25 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0154/1.019, allocations: 14.35 MB / 0.6052 GB, free: 32.78 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/1.019, allocations: 0 / 0.6052 GB, free: 32.78 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.605e-06/1.019, allocations: 0 / 0.6052 GB, free: 32.78 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006977/1.02, allocations: 0 / 0.6052 GB, free: 32.78 MB / 430.1 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.0293/1.049, allocations: 10 MB / 0.6149 GB, free: 23.57 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.817e-05/1.049, allocations: 12.03 kB / 0.6149 GB, free: 23.56 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006077/1.055, allocations: 1.335 MB / 0.6162 GB, free: 22.78 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2242/1.28, allocations: 25.07 MB / 0.6407 GB, free: 14.85 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.026/1.306, allocations: 11.39 MB / 0.6518 GB, free: 6.941 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006728/1.306, allocations: 0.5262 MB / 0.6524 GB, free: 6.645 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003677/1.31, allocations: 0.7322 MB / 0.6531 GB, free: 6.156 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04762/1.358, allocations: 19.13 MB / 0.6718 GB, free: 7.629 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008138/1.359, allocations: 96.84 kB / 0.6719 GB, free: 7.57 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003738/1.362, allocations: 332.1 kB / 0.6722 GB, free: 7.477 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004902/1.367, allocations: 2.817 MB / 0.6749 GB, free: 4.844 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03738/1.405, allocations: 15.47 MB / 0.69 GB, free: 5.617 MB / 478.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.528/1.933, allocations: 72.66 MB / 0.761 GB, free: 152.6 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01927/1.952, allocations: 8.054 MB / 0.7689 GB, free: 150.2 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005125/1.957, allocations: 4.232 MB / 0.773 GB, free: 147.8 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01937/1.977, allocations: 14.19 MB / 0.7868 GB, free: 138.1 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.803e-05/1.977, allocations: 71.25 kB / 0.7869 GB, free: 138 MB / 494.1 MB Notification: Performance of pre-optimization done (n=308): time 5.961e-06/1.977, allocations: 0 / 0.7869 GB, free: 138 MB / 494.1 MB Notification: Performance of matching and sorting (n=408): time 0.1481/2.125, allocations: 48 MB / 0.8338 GB, free: 91.73 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/2.125, allocations: 402.6 kB / 0.8342 GB, free: 91.25 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01088/2.136, allocations: 7.663 MB / 0.8417 GB, free: 83.6 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001084/2.137, allocations: 89.7 kB / 0.8417 GB, free: 83.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003165/2.14, allocations: 5.817 MB / 0.8474 GB, free: 77.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001727/2.142, allocations: 1.473 MB / 0.8489 GB, free: 76.23 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004725/2.142, allocations: 189.8 kB / 0.849 GB, free: 76.05 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003631/2.143, allocations: 0.6907 MB / 0.8497 GB, free: 75.35 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005701/2.149, allocations: 4.313 MB / 0.8539 GB, free: 71.03 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00789/2.156, allocations: 9.309 MB / 0.863 GB, free: 59.36 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007415/2.164, allocations: 6.209 MB / 0.8691 GB, free: 53.29 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001098/2.164, allocations: 48 kB / 0.8691 GB, free: 53.24 MB / 494.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.03348/2.197, allocations: 17.63 MB / 0.8863 GB, free: 35.65 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00015/2.198, allocations: 80 kB / 0.8864 GB, free: 35.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002606/2.198, allocations: 168 kB / 0.8866 GB, free: 35.41 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01388/2.212, allocations: 5.031 MB / 0.8915 GB, free: 30.37 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006251/2.218, allocations: 1.953 MB / 0.8934 GB, free: 28.41 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03723/2.255, allocations: 26.87 MB / 0.9196 GB, free: 1.41 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009256/2.265, allocations: 0.5421 MB / 0.9202 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002242/2.267, allocations: 0.5085 MB / 0.9207 GB, free: 368 kB / 494.1 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.2746/2.542, allocations: 4.076 MB / 0.9246 GB, free: 178.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001914/2.544, allocations: 0.7158 MB / 0.9253 GB, free: 178.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0241/2.568, allocations: 11.41 MB / 0.9365 GB, free: 178.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.191e-05/2.568, allocations: 47.09 kB / 0.9365 GB, free: 178.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.672e-05/2.568, allocations: 23.31 kB / 0.9366 GB, free: 178.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.88e-05/2.568, allocations: 18.91 kB / 0.9366 GB, free: 178.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04572/2.614, allocations: 24.58 MB / 0.9606 GB, free: 168.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.198e-05/2.614, allocations: 11.48 kB / 0.9606 GB, free: 168.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002465/2.616, allocations: 0.5309 MB / 0.9611 GB, free: 168.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0126/2.629, allocations: 4.449 MB / 0.9655 GB, free: 166.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007311/2.63, allocations: 77.31 kB / 0.9655 GB, free: 166.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03008/2.66, allocations: 23.51 MB / 0.9885 GB, free: 143 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.977e-06/2.66, allocations: 15.94 kB / 0.9885 GB, free: 143 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02688/2.687, allocations: 16.79 MB / 1.005 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004399/2.691, allocations: 1.426 MB / 1.006 GB, free: 125 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002206/2.693, allocations: 75.98 kB / 1.006 GB, free: 124.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004587/2.698, allocations: 263.5 kB / 1.007 GB, free: 124.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001053/2.699, allocations: 291 kB / 1.007 GB, free: 124.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004562/2.7, allocations: 109 kB / 1.007 GB, free: 124.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.01053/2.71, allocations: 4.925 MB / 1.012 GB, free: 119.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 9.11e-07/2.71, allocations: 0 / 1.012 GB, free: 119.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01283/2.723, allocations: 2.202 MB / 1.014 GB, free: 117.2 MB / 494.1 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.029/2.752, allocations: 17.55 MB / 1.031 GB, free: 99.53 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01597/2.768, allocations: 10.85 MB / 1.042 GB, free: 88.73 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.785e-05/2.768, allocations: 4 kB / 1.042 GB, free: 88.73 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007286/2.775, allocations: 4.565 MB / 1.046 GB, free: 84.15 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009332/2.785, allocations: 1.119 MB / 1.047 GB, free: 83.05 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3558/3.14, allocations: 88.39 MB / 1.134 GB, free: 169.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009422/3.15, allocations: 6.385 MB / 1.14 GB, free: 168.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.008384/3.158, allocations: 2.933 MB / 1.143 GB, free: 168.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007015/3.165, allocations: 4.28 MB / 1.147 GB, free: 167.3 MB / 494.1 MB Notification: Performance of SimCode: time 1.012e-06/3.165, allocations: 0 / 1.147 GB, free: 167.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.454/3.619, allocations: 181.3 MB / 1.324 GB, free: 148.2 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001561/3.62, allocations: 219.2 kB / 1.324 GB, free: 148 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.044/10.66, allocations: 3.938 kB / 1.324 GB, free: 148 MB / 494.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat