Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001118/0.001118, allocations: 98.92 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001422/0.001422, allocations: 206.9 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003453/0.0003453, allocations: 4 kB / 306.7 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1192, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2479/0.3672, allocations: 88.49 MB / 446.7 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0434/0.4106, allocations: 20.08 MB / 466.8 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02154/0.4322, allocations: 462.8 kB / 467.2 MB, free: 14.26 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01676/0.449, allocations: 4.46 MB / 471.7 MB, free: 9.781 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03451/0.4835, allocations: 12.77 MB / 484.5 MB, free: 12.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005546/0.4891, allocations: 1.385 MB / 485.8 MB, free: 11.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.3875/0.8766, allocations: 142.5 MB / 0.6136 GB, free: 23.12 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01086/0.8876, allocations: 8.742 MB / 0.6222 GB, free: 16.93 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005942/0.8935, allocations: 2.401 MB / 0.6245 GB, free: 15.38 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005138/0.8987, allocations: 3.12 MB / 0.6276 GB, free: 13.15 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001787/0.9005, allocations: 276 kB / 0.6278 GB, free: 12.88 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003929/0.9045, allocations: 1.102 MB / 0.6289 GB, free: 11.97 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004169/0.9087, allocations: 3.396 MB / 0.6322 GB, free: 9.484 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00264/0.9114, allocations: 1.585 MB / 0.6338 GB, free: 8.906 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0098/0.9212, allocations: 11.2 MB / 0.6447 GB, free: 15.18 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.9212, allocations: 3.375 kB / 0.6447 GB, free: 15.18 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.9212, allocations: 0 / 0.6447 GB, free: 15.18 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004017/0.9216, allocations: 0 / 0.6447 GB, free: 15.18 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02246/0.9441, allocations: 8.846 MB / 0.6534 GB, free: 7.031 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.9442, allocations: 16.03 kB / 0.6534 GB, free: 7.016 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003735/0.9479, allocations: 1.151 MB / 0.6545 GB, free: 6.336 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2876/1.236, allocations: 29.78 MB / 0.6836 GB, free: 10.45 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02045/1.256, allocations: 8.185 MB / 0.6916 GB, free: 4.535 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003942/1.256, allocations: 424.2 kB / 0.692 GB, free: 4.305 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002245/1.259, allocations: 0.5872 MB / 0.6925 GB, free: 3.914 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03283/1.292, allocations: 16.4 MB / 0.7086 GB, free: 7.102 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003907/1.292, allocations: 106.5 kB / 0.7087 GB, free: 7.035 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001436/1.293, allocations: 265.9 kB / 0.7089 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004458/1.298, allocations: 2.761 MB / 0.7116 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4183/1.716, allocations: 13.11 MB / 0.7244 GB, free: 197.4 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.07468/1.791, allocations: 66.82 MB / 0.7897 GB, free: 147.6 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02043/1.811, allocations: 7.72 MB / 0.7972 GB, free: 139.8 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02491/1.836, allocations: 11.84 MB / 0.8088 GB, free: 127.8 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.053e-05/1.837, allocations: 63.44 kB / 0.8088 GB, free: 127.8 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=280): time 7.123e-06/1.837, allocations: 0 / 0.8088 GB, free: 127.8 MB / 0.4982 GB Notification: Performance of matching and sorting (n=339): time 0.2181/2.055, allocations: 48.63 MB / 0.8563 GB, free: 79.36 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.652e-05/2.055, allocations: 402 kB / 0.8567 GB, free: 78.88 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009115/2.064, allocations: 7.855 MB / 0.8644 GB, free: 71.06 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0009396/2.065, allocations: 80.44 kB / 0.8644 GB, free: 70.98 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.003106/2.068, allocations: 5.172 MB / 0.8695 GB, free: 65.8 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001618/2.07, allocations: 1.244 MB / 0.8707 GB, free: 64.56 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004536/2.07, allocations: 163.9 kB / 0.8709 GB, free: 64.4 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0003162/2.07, allocations: 0.657 MB / 0.8715 GB, free: 63.74 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004373/2.075, allocations: 3.928 MB / 0.8753 GB, free: 59.8 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005834/2.081, allocations: 8.525 MB / 0.8837 GB, free: 48.99 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006458/2.087, allocations: 5.627 MB / 0.8892 GB, free: 43.35 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.82e-05/2.087, allocations: 44 kB / 0.8892 GB, free: 43.3 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.0302/2.117, allocations: 17.1 MB / 0.9059 GB, free: 26.14 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 9.721e-05/2.117, allocations: 72 kB / 0.906 GB, free: 26.07 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001454/2.118, allocations: 160 kB / 0.9061 GB, free: 25.92 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01544/2.133, allocations: 5.779 MB / 0.9118 GB, free: 20.12 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005369/2.138, allocations: 1.751 MB / 0.9135 GB, free: 18.37 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2222/2.361, allocations: 30.67 MB / 0.9434 GB, free: 173.7 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007588/2.368, allocations: 0.5317 MB / 0.9439 GB, free: 173.6 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001652/2.37, allocations: 469.2 kB / 0.9444 GB, free: 173.5 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 (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 (934): * Single equations (assignments): 928 * 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%) 94,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.007923/2.378, allocations: 3.462 MB / 0.9478 GB, free: 172.2 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001969/2.38, allocations: 0.6508 MB / 0.9484 GB, free: 172.2 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02197/2.402, allocations: 11.46 MB / 0.9596 GB, free: 168.5 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.294e-05/2.402, allocations: 37.39 kB / 0.9596 GB, free: 168.5 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.279e-05/2.402, allocations: 22.69 kB / 0.9597 GB, free: 168.5 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.263e-05/2.402, allocations: 20.48 kB / 0.9597 GB, free: 168.5 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0451/2.447, allocations: 24.91 MB / 0.984 GB, free: 157.8 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.792e-05/2.447, allocations: 3.969 kB / 0.984 GB, free: 157.8 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001992/2.449, allocations: 428.1 kB / 0.9844 GB, free: 157.7 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01576/2.465, allocations: 5.399 MB / 0.9897 GB, free: 153.2 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007988/2.466, allocations: 60 kB / 0.9897 GB, free: 153.1 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03312/2.499, allocations: 29.39 MB / 1.018 GB, free: 123.6 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/2.499, allocations: 11.95 kB / 1.018 GB, free: 123.6 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02712/2.526, allocations: 17.59 MB / 1.036 GB, free: 106 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002376/2.529, allocations: 0.72 MB / 1.036 GB, free: 105.3 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00153/2.53, allocations: 71.59 kB / 1.036 GB, free: 105.2 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003398/2.534, allocations: 270 kB / 1.037 GB, free: 104.9 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000792/2.534, allocations: 244 kB / 1.037 GB, free: 104.7 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002517/2.535, allocations: 91.98 kB / 1.037 GB, free: 104.6 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.006864/2.542, allocations: 5.159 MB / 1.042 GB, free: 99.49 MB / 0.4982 GB Notification: Performance of sort global known variables: time 2.6e-07/2.542, allocations: 0 / 1.042 GB, free: 99.49 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.009213/2.551, allocations: 1.994 MB / 1.044 GB, free: 97.5 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 (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%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0267/2.578, allocations: 19.35 MB / 1.063 GB, free: 77.94 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01544/2.593, allocations: 10.42 MB / 1.073 GB, free: 67.54 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.353e-05/2.593, allocations: 3.906 kB / 1.073 GB, free: 67.54 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.007142/2.6, allocations: 4.669 MB / 1.078 GB, free: 62.82 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00579/2.606, allocations: 0.983 MB / 1.079 GB, free: 61.87 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3408/2.947, allocations: 190.4 MB / 1.264 GB, free: 69.85 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006817/2.954, allocations: 5.694 MB / 1.27 GB, free: 67.83 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.006943/2.961, allocations: 2.642 MB / 1.273 GB, free: 66.09 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005109/2.966, allocations: 3.752 MB / 1.276 GB, free: 62.34 MB / 0.4982 GB Notification: Performance of SimCode: time 1.443e-06/2.966, allocations: 0 / 1.276 GB, free: 62.34 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4641/3.43, allocations: 163.5 MB / 1.436 GB, free: 96.82 MB / 0.4982 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001325/3.43, allocations: 213.2 kB / 1.436 GB, free: 96.59 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.256/9.686, allocations: 0 / 1.436 GB, free: 96.59 MB / 0.4982 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat