Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002596/0.002596, allocations: 182.2 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.987/1.987, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001151/0.001151, allocations: 101.2 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008259/0.0008263, allocations: 8 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3434/0.3443, allocations: 47.58 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.05578/0.4001, allocations: 45.74 MB / 420.4 MB, free: 2.988 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03095/0.4311, allocations: 11.09 MB / 431.5 MB, free: 7.871 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009373/0.4405, allocations: 231.4 kB / 431.7 MB, free: 7.645 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008259/0.4488, allocations: 2.271 MB / 434 MB, free: 5.363 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02664/0.4755, allocations: 6.693 MB / 440.7 MB, free: 14.65 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004642/0.4802, allocations: 0.8503 MB / 441.5 MB, free: 13.8 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.07739/0.5577, allocations: 28.07 MB / 469.6 MB, free: 1.703 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0108/0.5685, allocations: 5.008 MB / 474.6 MB, free: 12.64 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003967/0.5725, allocations: 1.569 MB / 476.2 MB, free: 11.06 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004834/0.5774, allocations: 2.263 MB / 478.4 MB, free: 8.793 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001197/0.5786, allocations: 236 kB / 478.6 MB, free: 8.562 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003469/0.5821, allocations: 1.096 MB / 479.7 MB, free: 7.465 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00401/0.5861, allocations: 2.392 MB / 482.1 MB, free: 5.066 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002056/0.5882, allocations: 1.209 MB / 483.3 MB, free: 3.848 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01384/0.6021, allocations: 8.094 MB / 491.4 MB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.6021, allocations: 0 / 491.4 MB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.39e-06/0.6022, allocations: 0 / 491.4 MB, free: 11.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003011/0.6025, allocations: 3.938 kB / 491.4 MB, free: 11.73 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02325/0.6257, allocations: 6.453 MB / 497.9 MB, free: 5.195 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.6258, allocations: 8.031 kB / 497.9 MB, free: 5.188 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003934/0.6297, allocations: 1.14 MB / 499 MB, free: 4.031 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4101/1.04, allocations: 9.761 MB / 0.4969 GB, free: 106.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01919/1.059, allocations: 4.634 MB / 0.5014 GB, free: 104.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004871/1.06, allocations: 317 kB / 0.5017 GB, free: 104.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00233/1.062, allocations: 436.2 kB / 0.5021 GB, free: 104 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03724/1.099, allocations: 15.76 MB / 0.5175 GB, free: 90.13 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002527/1.1, allocations: 67.36 kB / 0.5176 GB, free: 90.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001502/1.101, allocations: 199.3 kB / 0.5178 GB, free: 89.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007877/1.109, allocations: 3.218 MB / 0.5209 GB, free: 86.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0393/1.148, allocations: 14.06 MB / 0.5346 GB, free: 72.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09883/1.247, allocations: 57.57 MB / 0.5909 GB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02187/1.269, allocations: 6.561 MB / 0.5973 GB, free: 7.098 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04134/1.31, allocations: 14.45 MB / 0.6114 GB, free: 8.16 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001067/1.311, allocations: 64.5 kB / 0.6114 GB, free: 8.09 MB / 394.7 MB Notification: Performance of pre-optimization done (n=286): time 9.679e-06/1.311, allocations: 0 / 0.6114 GB, free: 8.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=336): time 0.5812/1.892, allocations: 42.83 MB / 0.6533 GB, free: 140.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.183e-05/1.892, allocations: 213.4 kB / 0.6535 GB, free: 139.9 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01186/1.904, allocations: 5.738 MB / 0.6591 GB, free: 138.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009144/1.905, allocations: 73.88 kB / 0.6591 GB, free: 138.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003605/1.908, allocations: 4.29 MB / 0.6633 GB, free: 135.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002122/1.911, allocations: 1.244 MB / 0.6645 GB, free: 134.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001086/1.912, allocations: 173.9 kB / 0.6647 GB, free: 134.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006298/1.912, allocations: 0.6889 MB / 0.6654 GB, free: 134.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01195/1.924, allocations: 4.581 MB / 0.6699 GB, free: 132.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01388/1.938, allocations: 9.537 MB / 0.6792 GB, free: 124.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01444/1.953, allocations: 6.455 MB / 0.6855 GB, free: 121.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000159/1.953, allocations: 49.75 kB / 0.6855 GB, free: 121.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.06926/2.022, allocations: 18.73 MB / 0.7038 GB, free: 106.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001299/2.022, allocations: 80 kB / 0.7039 GB, free: 106 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002238/2.023, allocations: 172 kB / 0.704 GB, free: 105.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03977/2.062, allocations: 5.832 MB / 0.7097 GB, free: 100 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01295/2.075, allocations: 2.051 MB / 0.7117 GB, free: 97.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05045/2.126, allocations: 24.95 MB / 0.7361 GB, free: 72.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01103/2.137, allocations: 0.5466 MB / 0.7366 GB, free: 72.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001971/2.139, allocations: 0.5086 MB / 0.7371 GB, free: 71.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007983/2.147, allocations: 3.096 MB / 0.7402 GB, free: 68.58 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001558/2.149, allocations: 0.5013 MB / 0.7407 GB, free: 68.07 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05325/2.202, allocations: 12.6 MB / 0.753 GB, free: 55.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001197/2.202, allocations: 63.86 kB / 0.753 GB, free: 55.34 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.995e-05/2.202, allocations: 8 kB / 0.753 GB, free: 55.33 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.801e-05/2.202, allocations: 15.95 kB / 0.753 GB, free: 55.32 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08009/2.282, allocations: 24.34 MB / 0.7768 GB, free: 30.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.158e-05/2.282, allocations: 4 kB / 0.7768 GB, free: 30.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005533/2.288, allocations: 0.5778 MB / 0.7774 GB, free: 29.92 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03499/2.323, allocations: 4.841 MB / 0.7821 GB, free: 25.07 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008728/2.324, allocations: 55.98 kB / 0.7822 GB, free: 25.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04167/2.366, allocations: 20.2 MB / 0.8019 GB, free: 4.559 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.977e-06/2.366, allocations: 11.94 kB / 0.8019 GB, free: 4.547 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3605/2.726, allocations: 17.71 MB / 0.8192 GB, free: 124 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004876/2.731, allocations: 1.246 MB / 0.8204 GB, free: 123.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002215/2.733, allocations: 55.81 kB / 0.8205 GB, free: 123.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007437/2.741, allocations: 260.2 kB / 0.8207 GB, free: 123.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002153/2.743, allocations: 195 kB / 0.8209 GB, free: 123.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001174/2.744, allocations: 86.67 kB / 0.821 GB, free: 123.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01011/2.754, allocations: 3.609 MB / 0.8245 GB, free: 122.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.71e-07/2.754, allocations: 0 / 0.8245 GB, free: 122.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01088/2.765, allocations: 1.73 MB / 0.8262 GB, free: 122.1 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06165/2.827, allocations: 19.44 MB / 0.8452 GB, free: 111.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02353/2.851, allocations: 10.54 MB / 0.8555 GB, free: 101.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.062e-05/2.851, allocations: 0 / 0.8555 GB, free: 101.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009304/2.86, allocations: 4.003 MB / 0.8594 GB, free: 97.45 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00523/2.865, allocations: 0.5825 MB / 0.8599 GB, free: 96.89 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3687/3.234, allocations: 150.3 MB / 1.007 GB, free: 99.74 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008354/3.242, allocations: 4.766 MB / 1.011 GB, free: 98.87 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00693/3.249, allocations: 2.966 MB / 1.014 GB, free: 98.86 MB / 442.7 MB Notification: Performance of SimCode: time 1.233e-06/3.249, allocations: 0 / 1.014 GB, free: 98.86 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.409/8.658, allocations: 179.9 MB / 1.19 GB, free: 114.7 MB / 458.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat