Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001015/0.001016, allocations: 194.3 kB / 17.38 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.207/1.207, allocations: 226.5 MB / 244.7 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007514/0.0007514, allocations: 103.7 kB / 296.7 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002027/0.0002027, allocations: 4 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1948/0.195, allocations: 51.29 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.04791/0.2429, allocations: 68.37 MB / 476.5 MB, free: 7.133 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02667/0.2696, allocations: 14.3 MB / 490.8 MB, free: 8.797 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01118/0.2809, allocations: 335.1 kB / 491.1 MB, free: 8.469 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009523/0.2904, allocations: 3.557 MB / 494.7 MB, free: 4.895 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02401/0.3145, allocations: 10.47 MB / 0.4933 GB, free: 10.38 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004453/0.3189, allocations: 1.049 MB / 0.4943 GB, free: 9.332 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.2934/0.6124, allocations: 91.74 MB / 0.5839 GB, free: 2.766 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0096/0.622, allocations: 7.066 MB / 0.5908 GB, free: 13.74 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004028/0.6261, allocations: 2.006 MB / 0.5928 GB, free: 12.39 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004686/0.6308, allocations: 3.147 MB / 0.5959 GB, free: 10.16 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001354/0.6322, allocations: 216 kB / 0.5961 GB, free: 9.945 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003249/0.6354, allocations: 1.258 MB / 0.5973 GB, free: 8.957 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00357/0.639, allocations: 2.599 MB / 0.5998 GB, free: 7.062 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004518/0.6436, allocations: 2.877 MB / 0.6026 GB, free: 6.031 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00836/0.6519, allocations: 8.127 MB / 0.6106 GB, free: 14.98 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.652, allocations: 0 / 0.6106 GB, free: 14.98 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.652, allocations: 3.844 kB / 0.6106 GB, free: 14.98 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003497/0.6523, allocations: 0 / 0.6106 GB, free: 14.98 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.01595/0.6683, allocations: 6.603 MB / 0.617 GB, free: 8.898 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.6684, allocations: 8.031 kB / 0.617 GB, free: 8.891 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002807/0.6712, allocations: 1.079 MB / 0.6181 GB, free: 8.199 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05275/0.7239, allocations: 8.623 MB / 0.6265 GB, free: 196 kB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01089/0.7349, allocations: 5.409 MB / 0.6318 GB, free: 12.19 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000318/0.7352, allocations: 340.6 kB / 0.6321 GB, free: 12 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0016/0.7368, allocations: 474.2 kB / 0.6326 GB, free: 11.7 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02612/0.763, allocations: 14.46 MB / 0.6467 GB, free: 424 kB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000373/0.7634, allocations: 78.38 kB / 0.6468 GB, free: 376 kB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001574/0.765, allocations: 214.9 kB / 0.647 GB, free: 312 kB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005317/0.7703, allocations: 2.831 MB / 0.6497 GB, free: 13.93 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02332/0.7937, allocations: 12.99 MB / 0.6624 GB, free: 4.781 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2501/1.044, allocations: 58.27 MB / 0.7193 GB, free: 157.2 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0153/1.059, allocations: 7.684 MB / 0.7268 GB, free: 154.5 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00488/1.064, allocations: 5 MB / 0.7317 GB, free: 152 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01672/1.081, allocations: 12.68 MB / 0.7441 GB, free: 142.5 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.753e-05/1.081, allocations: 60.7 kB / 0.7442 GB, free: 142.4 MB / 490.7 MB Notification: Performance of pre-optimization done (n=326): time 5.811e-06/1.081, allocations: 3.781 kB / 0.7442 GB, free: 142.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=572): time 1.875/2.956, allocations: 407.1 MB / 1.142 GB, free: 127.4 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.747e-05/2.956, allocations: 262.8 kB / 1.142 GB, free: 127.1 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005908/2.962, allocations: 5.464 MB / 1.147 GB, free: 121.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001515/2.963, allocations: 113.7 kB / 1.147 GB, free: 121.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001789/2.965, allocations: 4.009 MB / 1.151 GB, free: 118.3 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002245/2.967, allocations: 2.001 MB / 1.153 GB, free: 116.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001036/2.968, allocations: 184.5 kB / 1.153 GB, free: 116.1 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000318/2.969, allocations: 0.6996 MB / 1.154 GB, free: 115.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01166/2.98, allocations: 10.84 MB / 1.165 GB, free: 104.6 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01359/2.994, allocations: 14.96 MB / 1.179 GB, free: 87.77 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02678/3.021, allocations: 27.08 MB / 1.206 GB, free: 58.96 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.695e-05/3.021, allocations: 36 kB / 1.206 GB, free: 58.93 MB / 490.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.4826/3.503, allocations: 140.4 MB / 1.343 GB, free: 95.61 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.723e-05/3.503, allocations: 75.33 kB / 1.343 GB, free: 95.55 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001111/3.504, allocations: 136 kB / 1.343 GB, free: 95.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07454/3.578, allocations: 34.63 MB / 1.377 GB, free: 60.97 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004152/3.582, allocations: 1.489 MB / 1.378 GB, free: 59.58 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4045/3.987, allocations: 190 MB / 1.564 GB, free: 47.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01212/3.999, allocations: 1.711 MB / 1.566 GB, free: 46.05 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002221/4.001, allocations: 0.5253 MB / 1.566 GB, free: 45.53 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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 (783): * Single equations (assignments): 776 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(20,40.5%) 164,(17,42.9%) 101,(2,100.0%) 7} * Non-linear torn systems: 1 {12 76} Notification: Performance of prepare postOptimizeDAE: time 0.006487/4.008, allocations: 3.088 MB / 1.569 GB, free: 42.57 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002108/4.01, allocations: 0.5849 MB / 1.57 GB, free: 42.09 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4857/4.496, allocations: 136.5 MB / 1.703 GB, free: 82.95 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.546e-05/4.496, allocations: 56 kB / 1.703 GB, free: 82.89 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001386/4.496, allocations: 62.62 kB / 1.703 GB, free: 82.84 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.005e-05/4.496, allocations: 27.89 kB / 1.703 GB, free: 82.81 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5398/5.036, allocations: 206.2 MB / 1.904 GB, free: 65.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.025e-05/5.036, allocations: 8 kB / 1.904 GB, free: 65.26 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001444/5.037, allocations: 331.4 kB / 1.905 GB, free: 64.94 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07014/5.108, allocations: 33.77 MB / 1.938 GB, free: 31.37 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001374/5.109, allocations: 100.7 kB / 1.938 GB, free: 31.27 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3992/5.508, allocations: 173.1 MB / 2.107 GB, free: 31.02 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.605e-06/5.508, allocations: 11.94 kB / 2.107 GB, free: 31.01 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5098/6.018, allocations: 152.3 MB / 2.256 GB, free: 49.59 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001382/6.019, allocations: 0.6398 MB / 2.256 GB, free: 49 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002011/6.021, allocations: 96.7 kB / 2.256 GB, free: 48.91 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008584/6.03, allocations: 1.487 MB / 2.258 GB, free: 47.42 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003403/6.033, allocations: 0.4977 MB / 2.258 GB, free: 46.93 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009008/6.034, allocations: 144.9 kB / 2.258 GB, free: 46.79 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004324/6.039, allocations: 3.482 MB / 2.262 GB, free: 43.34 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.8e-07/6.039, allocations: 0 / 2.262 GB, free: 43.34 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01127/6.05, allocations: 3.803 MB / 2.265 GB, free: 39.54 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (j1.phi,j1.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 (165): * Single equations (assignments): 158 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(20,40.5%) 157,(16,51.6%) 99,(2,100.0%) 7} * Non-linear torn systems: 1 {12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.4951/6.545, allocations: 152.8 MB / 2.415 GB, free: 59.79 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.05075/6.596, allocations: 33.35 MB / 2.447 GB, free: 26.57 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.315e-05/6.596, allocations: 1.641 kB / 2.447 GB, free: 26.57 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2071/6.803, allocations: 20.47 MB / 2.467 GB, free: 152.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009635/6.813, allocations: 0.7901 MB / 2.468 GB, free: 152 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5809/7.394, allocations: 214.1 MB / 2.677 GB, free: 135.6 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006309/7.4, allocations: 5.1 MB / 2.682 GB, free: 131.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003775/7.404, allocations: 3.083 MB / 2.685 GB, free: 128.5 MB / 490.7 MB Notification: Performance of SimCode: time 8.22e-07/7.404, allocations: 0 / 2.685 GB, free: 128.5 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 14.63/22.03, allocations: 283.9 MB / 2.962 GB, free: 7.625 MB / 490.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat