Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",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.001182/0.001182, allocations: 94.91 kB / 16.3 MB, free: 6.461 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.001264/0.001264, allocations: 174.8 kB / 17.19 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 223.2 MB / 241.1 MB, free: 14.67 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003054/0.0003057, allocations: 4.688 kB / 300.8 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1179, allocations: 50.41 MB / 351.2 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.3212/0.4391, allocations: 95.41 MB / 446.6 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.05155/0.4907, allocations: 21.42 MB / 468.1 MB, free: 15.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02963/0.5204, allocations: 0.4948 MB / 468.6 MB, free: 14.63 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02101/0.5414, allocations: 4.81 MB / 473.4 MB, free: 9.797 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04764/0.5891, allocations: 13.72 MB / 487.1 MB, free: 12.04 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007402/0.5965, allocations: 1.471 MB / 488.6 MB, free: 10.57 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.482/1.079, allocations: 142.5 MB / 0.6162 GB, free: 22.84 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01354/1.092, allocations: 9.226 MB / 0.6252 GB, free: 16.3 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005397/1.098, allocations: 2.522 MB / 0.6277 GB, free: 14.67 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005039/1.103, allocations: 3.258 MB / 0.6309 GB, free: 12.36 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001864/1.105, allocations: 292 kB / 0.6312 GB, free: 12.07 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003373/1.108, allocations: 1.122 MB / 0.6323 GB, free: 11.14 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003817/1.112, allocations: 3.527 MB / 0.6357 GB, free: 8.559 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002659/1.115, allocations: 1.65 MB / 0.6373 GB, free: 7.953 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01093/1.125, allocations: 11.6 MB / 0.6486 GB, free: 13.87 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/1.126, allocations: 3.469 kB / 0.6487 GB, free: 13.87 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.575e-06/1.126, allocations: 0 / 0.6487 GB, free: 13.87 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004904/1.126, allocations: 0 / 0.6487 GB, free: 13.87 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.02504/1.151, allocations: 9.14 MB / 0.6576 GB, free: 5.465 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/1.151, allocations: 8.031 kB / 0.6576 GB, free: 5.457 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003739/1.155, allocations: 1.189 MB / 0.6587 GB, free: 4.758 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2913/1.446, allocations: 29.82 MB / 0.6879 GB, free: 8.828 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02906/1.475, allocations: 8.369 MB / 0.696 GB, free: 2.785 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007272/1.476, allocations: 450 kB / 0.6965 GB, free: 2.539 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003239/1.479, allocations: 0.6116 MB / 0.6971 GB, free: 2.133 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04068/1.52, allocations: 16.99 MB / 0.7137 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00051/1.521, allocations: 105.3 kB / 0.7138 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002261/1.523, allocations: 276.8 kB / 0.714 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00479/1.528, allocations: 2.862 MB / 0.7168 GB, free: 2.434 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3622/1.89, allocations: 13.52 MB / 0.73 GB, free: 202 MB / 0.4982 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.08097/1.971, allocations: 68.76 MB / 0.7972 GB, free: 146.5 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0179/1.989, allocations: 8.016 MB / 0.805 GB, free: 138.3 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01974/2.009, allocations: 12.21 MB / 0.8169 GB, free: 126.1 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.116e-05/2.009, allocations: 72.47 kB / 0.817 GB, free: 126 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=294): time 6.733e-06/2.009, allocations: 0 / 0.817 GB, free: 126 MB / 0.4982 GB Notification: Performance of matching and sorting (n=360): time 0.169/2.178, allocations: 51.15 MB / 0.8669 GB, free: 75 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001305/2.178, allocations: 398.2 kB / 0.8673 GB, free: 74.53 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009282/2.187, allocations: 8.009 MB / 0.8751 GB, free: 66.57 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0007928/2.188, allocations: 78.88 kB / 0.8752 GB, free: 66.48 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.002627/2.191, allocations: 5.349 MB / 0.8804 GB, free: 61.13 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001285/2.192, allocations: 1.317 MB / 0.8817 GB, free: 59.82 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003826/2.192, allocations: 168 kB / 0.8819 GB, free: 59.66 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0002814/2.193, allocations: 0.6655 MB / 0.8825 GB, free: 58.98 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004654/2.197, allocations: 4.089 MB / 0.8865 GB, free: 54.89 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007993/2.205, allocations: 8.8 MB / 0.8951 GB, free: 43.76 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007331/2.213, allocations: 5.825 MB / 0.9008 GB, free: 37.91 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.554e-05/2.213, allocations: 48 kB / 0.9009 GB, free: 37.87 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.03498/2.248, allocations: 17.81 MB / 0.9183 GB, free: 20 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002304/2.248, allocations: 80.03 kB / 0.9183 GB, free: 19.92 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003055/2.248, allocations: 160 kB / 0.9185 GB, free: 19.77 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01773/2.266, allocations: 6.079 MB / 0.9244 GB, free: 13.67 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005892/2.272, allocations: 1.829 MB / 0.9262 GB, free: 11.84 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2574/2.529, allocations: 31.87 MB / 0.9573 GB, free: 174.4 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008564/2.538, allocations: 0.5484 MB / 0.9579 GB, free: 174.2 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001772/2.54, allocations: 491.9 kB / 0.9583 GB, free: 174.2 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 743 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.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 (968): * Single equations (assignments): 962 * 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%) 97,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.006858/2.547, allocations: 3.586 MB / 0.9618 GB, free: 172.8 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00153/2.548, allocations: 0.6754 MB / 0.9625 GB, free: 172.8 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03331/2.582, allocations: 12.07 MB / 0.9743 GB, free: 168.9 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.565e-05/2.582, allocations: 40.02 kB / 0.9743 GB, free: 168.9 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.806e-05/2.582, allocations: 23.16 kB / 0.9743 GB, free: 168.9 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.8e-05/2.582, allocations: 24.7 kB / 0.9744 GB, free: 168.9 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07042/2.652, allocations: 26.05 MB / 0.9998 GB, free: 153.4 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-05/2.652, allocations: 4 kB / 0.9998 GB, free: 153.4 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003227/2.656, allocations: 467.3 kB / 1 GB, free: 152.9 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02598/2.682, allocations: 5.734 MB / 1.006 GB, free: 147.2 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001371/2.683, allocations: 64 kB / 1.006 GB, free: 147.2 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03591/2.719, allocations: 30.74 MB / 1.036 GB, free: 116.3 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/2.719, allocations: 11.94 kB / 1.036 GB, free: 116.3 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02935/2.748, allocations: 18.46 MB / 1.054 GB, free: 97.91 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005572/2.754, allocations: 1.392 MB / 1.055 GB, free: 96.5 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002497/2.757, allocations: 64.86 kB / 1.055 GB, free: 96.43 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004477/2.761, allocations: 293.8 kB / 1.056 GB, free: 96.15 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000921/2.762, allocations: 255.8 kB / 1.056 GB, free: 95.9 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002909/2.762, allocations: 89.09 kB / 1.056 GB, free: 95.82 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.007164/2.77, allocations: 5.255 MB / 1.061 GB, free: 90.6 MB / 0.4982 GB Notification: Performance of sort global known variables: time 2.5e-07/2.77, allocations: 3.562 kB / 1.061 GB, free: 90.6 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.009162/2.779, allocations: 2.089 MB / 1.063 GB, free: 88.52 MB / 0.4982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (232): * Single equations (assignments): 226 * 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%) 90,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.02898/2.808, allocations: 20.12 MB / 1.083 GB, free: 68.21 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01664/2.824, allocations: 10.86 MB / 1.093 GB, free: 57.38 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/2.824, allocations: 4 kB / 1.093 GB, free: 57.37 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.007707/2.832, allocations: 4.956 MB / 1.098 GB, free: 52.38 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00615/2.838, allocations: 1.004 MB / 1.099 GB, free: 51.4 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3887/3.227, allocations: 196.3 MB / 1.291 GB, free: 58.96 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008673/3.236, allocations: 5.904 MB / 1.297 GB, free: 56.62 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.0076/3.243, allocations: 2.729 MB / 1.299 GB, free: 54.21 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006115/3.25, allocations: 3.909 MB / 1.303 GB, free: 50.3 MB / 0.4982 GB Notification: Performance of SimCode: time 1.663e-06/3.25, allocations: 0 / 1.303 GB, free: 50.3 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4497/3.699, allocations: 170.2 MB / 1.469 GB, free: 85.85 MB / 0.4982 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001472/3.7, allocations: 218.3 kB / 1.47 GB, free: 85.61 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.905/10.6, allocations: 0 / 1.47 GB, free: 85.61 MB / 0.4982 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat does not exist to compare? outputFormat=mat