Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0008621/0.000862, allocations: 101.3 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009969/0.000997, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002234/0.0002234, allocations: 11.98 kB / 306.8 MB, free: 1.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1143, allocations: 51.48 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.302/0.4163, allocations: 103.8 MB / 462.1 MB, free: 3.969 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05846/0.4748, allocations: 21.48 MB / 483.5 MB, free: 14.42 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0276/0.5025, allocations: 0.5026 MB / 484 MB, free: 13.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02076/0.5232, allocations: 5.334 MB / 489.4 MB, free: 8.555 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0494/0.5727, allocations: 15.76 MB / 0.4933 GB, free: 8.742 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009626/0.5823, allocations: 1.702 MB / 0.495 GB, free: 7.039 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.4868/1.069, allocations: 180.4 MB / 0.6711 GB, free: 7.887 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02576/1.095, allocations: 12.74 MB / 0.6835 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008156/1.103, allocations: 3.241 MB / 0.6867 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009267/1.113, allocations: 5.04 MB / 0.6916 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.002682/1.115, allocations: 336 kB / 0.6919 GB, free: 8.664 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00512/1.12, allocations: 1.333 MB / 0.6932 GB, free: 7.582 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.008122/1.129, allocations: 4.206 MB / 0.6973 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.005107/1.134, allocations: 1.867 MB / 0.6992 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01876/1.152, allocations: 14.29 MB / 0.7131 GB, free: 7.383 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 9.408e-06/1.152, allocations: 0 / 0.7131 GB, free: 7.383 MB / 0.5137 GB Notification: Performance of FrontEnd: time 3.346e-06/1.153, allocations: 0 / 0.7131 GB, free: 7.383 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0007033/1.153, allocations: 0 / 0.7131 GB, free: 7.383 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2752 * Number of variables: 2752 Notification: Performance of Generate backend data structure: time 0.4311/1.584, allocations: 9.936 MB / 0.7228 GB, free: 220.9 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/1.584, allocations: 9.531 kB / 0.7228 GB, free: 220.9 MB / 0.5138 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007248/1.592, allocations: 1.337 MB / 0.7241 GB, free: 220.8 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2302/1.822, allocations: 25.06 MB / 0.7486 GB, free: 210.3 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02399/1.846, allocations: 9.79 MB / 0.7582 GB, free: 200.6 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005043/1.846, allocations: 0.5222 MB / 0.7587 GB, free: 200.1 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003211/1.85, allocations: 0.7368 MB / 0.7594 GB, free: 199.4 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03658/1.886, allocations: 19.14 MB / 0.7781 GB, free: 179.4 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003466/1.887, allocations: 87.27 kB / 0.7782 GB, free: 179.3 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001196/1.888, allocations: 327.3 kB / 0.7785 GB, free: 179 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0034/1.891, allocations: 2.818 MB / 0.7812 GB, free: 176.2 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0319/1.923, allocations: 15.48 MB / 0.7964 GB, free: 160.7 MB / 0.5138 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.09523/2.018, allocations: 72.52 MB / 0.8672 GB, free: 86.53 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01964/2.038, allocations: 8.053 MB / 0.875 GB, free: 78.34 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005306/2.043, allocations: 4.233 MB / 0.8792 GB, free: 74.08 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02224/2.066, allocations: 14.25 MB / 0.8931 GB, free: 59.36 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.847e-05/2.066, allocations: 72.5 kB / 0.8932 GB, free: 59.28 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=309): time 6.392e-06/2.066, allocations: 4 kB / 0.8932 GB, free: 59.27 MB / 0.5138 GB Notification: Performance of matching and sorting (n=416): time 0.173/2.239, allocations: 50.9 MB / 0.9429 GB, free: 8.238 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001346/2.239, allocations: 402.6 kB / 0.9433 GB, free: 7.758 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01513/2.254, allocations: 7.549 MB / 0.9506 GB, free: 212 kB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.00108/2.255, allocations: 89.7 kB / 0.9507 GB, free: 116 kB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.2627/2.518, allocations: 5.784 MB / 0.9564 GB, free: 201.1 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002338/2.52, allocations: 1.512 MB / 0.9578 GB, free: 200 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008469/2.521, allocations: 184.4 kB / 0.958 GB, free: 199.9 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0005372/2.522, allocations: 0.6944 MB / 0.9587 GB, free: 199.4 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007454/2.529, allocations: 4.42 MB / 0.963 GB, free: 197.7 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01131/2.541, allocations: 9.383 MB / 0.9722 GB, free: 189.5 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01201/2.553, allocations: 6.311 MB / 0.9783 GB, free: 186.9 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002748/2.553, allocations: 49 kB / 0.9784 GB, free: 186.9 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1204) (initialization): time 0.03883/2.592, allocations: 18.03 MB / 0.996 GB, free: 180.4 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001538/2.592, allocations: 77.5 kB / 0.9961 GB, free: 180.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002182/2.592, allocations: 170.1 kB / 0.9962 GB, free: 180.4 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01587/2.608, allocations: 5.215 MB / 1.001 GB, free: 179.3 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007412/2.616, allocations: 1.948 MB / 1.003 GB, free: 179 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0421/2.658, allocations: 28.26 MB / 1.031 GB, free: 151.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009898/2.668, allocations: 0.551 MB / 1.031 GB, free: 150.6 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002357/2.67, allocations: 0.5078 MB / 1.032 GB, free: 150.1 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 774 * 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],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 (1047): * Single equations (assignments): 1042 * 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%) 129} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01064/2.681, allocations: 4.087 MB / 1.036 GB, free: 146 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003384/2.684, allocations: 0.7058 MB / 1.037 GB, free: 145.3 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02773/2.712, allocations: 11.88 MB / 1.048 GB, free: 133.4 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.409e-05/2.712, allocations: 44.7 kB / 1.048 GB, free: 133.4 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.163e-05/2.712, allocations: 24.83 kB / 1.048 GB, free: 133.3 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001025/2.712, allocations: 19.94 kB / 1.048 GB, free: 133.3 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0573/2.77, allocations: 25.67 MB / 1.073 GB, free: 107.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.388e-05/2.77, allocations: 8 kB / 1.073 GB, free: 107.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002803/2.773, allocations: 0.5733 MB / 1.074 GB, free: 106.9 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01429/2.787, allocations: 4.828 MB / 1.079 GB, free: 102 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001086/2.788, allocations: 82.02 kB / 1.079 GB, free: 101.9 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03682/2.825, allocations: 25.01 MB / 1.103 GB, free: 76.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.548e-06/2.825, allocations: 15.97 kB / 1.103 GB, free: 76.79 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03279/2.858, allocations: 17.74 MB / 1.12 GB, free: 58.87 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002616/2.86, allocations: 0.7339 MB / 1.121 GB, free: 58.11 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002834/2.863, allocations: 75.95 kB / 1.121 GB, free: 58.03 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005497/2.869, allocations: 280.6 kB / 1.121 GB, free: 57.76 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001565/2.87, allocations: 291.1 kB / 1.122 GB, free: 57.47 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008048/2.871, allocations: 114.2 kB / 1.122 GB, free: 57.36 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.01055/2.882, allocations: 4.843 MB / 1.127 GB, free: 52.53 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.71e-07/2.882, allocations: 4 kB / 1.127 GB, free: 52.53 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01527/2.897, allocations: 2.218 MB / 1.129 GB, free: 50.32 MB / 0.5138 GB 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 (287): * Single equations (assignments): 283 * 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%) 113} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03292/2.93, allocations: 18.5 MB / 1.147 GB, free: 31.63 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.232/3.162, allocations: 11.17 MB / 1.158 GB, free: 195.2 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.283e-05/3.162, allocations: 2.219 kB / 1.158 GB, free: 195.2 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.009089/3.171, allocations: 4.807 MB / 1.162 GB, free: 194.5 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007563/3.179, allocations: 1.107 MB / 1.164 GB, free: 194.1 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1601/3.339, allocations: 88.41 MB / 1.25 GB, free: 120.9 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01153/3.351, allocations: 6.385 MB / 1.256 GB, free: 114.5 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.008426/3.359, allocations: 2.924 MB / 1.259 GB, free: 111.5 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007043/3.366, allocations: 4.362 MB / 1.263 GB, free: 107.2 MB / 0.5138 GB Notification: Performance of SimCode: time 1.503e-06/3.366, allocations: 0 / 1.263 GB, free: 107.2 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4717/3.838, allocations: 182.2 MB / 1.441 GB, free: 132.5 MB / 0.5138 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001376/3.838, allocations: 221.7 kB / 1.441 GB, free: 132.2 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.662/10.5, allocations: 0 / 1.441 GB, free: 132.2 MB / 0.5138 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat