Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.Fourbar_analytic,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",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.002246/0.00225, allocations: 186.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.12/2.12, allocations: 205.4 MB / 222.5 MB, free: 13.76 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.001126/0.001126, allocations: 94.86 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005131/0.0005132, allocations: 8 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1065, allocations: 47.58 MB / 374.6 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.3249/0.4315, allocations: 47.46 MB / 422.1 MB, free: 9.617 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03544/0.467, allocations: 11.77 MB / 433.9 MB, free: 1.035 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01316/0.4803, allocations: 235.4 kB / 434.1 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009418/0.4897, allocations: 2.352 MB / 436.4 MB, free: 14.44 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02801/0.5178, allocations: 6.788 MB / 443.2 MB, free: 7.637 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005206/0.523, allocations: 0.8931 MB / 444.1 MB, free: 6.742 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.07451/0.5976, allocations: 27.5 MB / 471.6 MB, free: 11.21 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01405/0.6117, allocations: 6.524 MB / 478.2 MB, free: 4.633 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003378/0.6151, allocations: 1.339 MB / 479.5 MB, free: 3.289 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003758/0.6189, allocations: 1.764 MB / 481.3 MB, free: 1.52 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000941/0.6199, allocations: 188 kB / 481.4 MB, free: 1.336 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003346/0.6233, allocations: 1.147 MB / 482.6 MB, free: 192 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00332/0.6266, allocations: 2.034 MB / 484.6 MB, free: 14.15 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001792/0.6285, allocations: 1.049 MB / 485.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0133/0.6418, allocations: 7.564 MB / 493.2 MB, free: 5.508 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.6419, allocations: 0 / 493.2 MB, free: 5.508 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.438e-06/0.6419, allocations: 0 / 493.2 MB, free: 5.508 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003317/0.6422, allocations: 0 / 493.2 MB, free: 5.508 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.02608/0.6683, allocations: 5.214 MB / 498.5 MB, free: 224 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.423e-05/0.6684, allocations: 12.02 kB / 498.5 MB, free: 212 kB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004794/0.6733, allocations: 0.94 MB / 499.4 MB, free: 15.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1215/0.7948, allocations: 7.947 MB / 0.4955 GB, free: 7.289 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02157/0.8164, allocations: 4.227 MB / 0.4996 GB, free: 3.004 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006389/0.8171, allocations: 311.9 kB / 0.4999 GB, free: 2.695 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003048/0.8202, allocations: 439.5 kB / 0.5003 GB, free: 2.266 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05784/0.878, allocations: 12.47 MB / 0.5125 GB, free: 5.055 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003325/0.8784, allocations: 47.58 kB / 0.5125 GB, free: 5.008 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001688/0.8801, allocations: 187.9 kB / 0.5127 GB, free: 4.824 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008933/0.8891, allocations: 2.039 MB / 0.5147 GB, free: 2.781 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04097/0.9301, allocations: 10.53 MB / 0.525 GB, free: 8.234 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3507/1.281, allocations: 44.32 MB / 0.5683 GB, free: 101.8 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0222/1.303, allocations: 4.843 MB / 0.573 GB, free: 99.83 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01842/1.322, allocations: 7.114 MB / 0.5799 GB, free: 94.85 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.479e-05/1.322, allocations: 49.22 kB / 0.58 GB, free: 94.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=179): time 6.302e-06/1.322, allocations: 0 / 0.58 GB, free: 94.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=223): time 0.1181/1.44, allocations: 19.59 MB / 0.5991 GB, free: 78.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/1.44, allocations: 209.9 kB / 0.5993 GB, free: 78.68 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0103/1.45, allocations: 4.736 MB / 0.604 GB, free: 73.93 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005049/1.451, allocations: 62.95 kB / 0.604 GB, free: 73.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002779/1.454, allocations: 3.439 MB / 0.6074 GB, free: 70.43 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001183/1.455, allocations: 0.8312 MB / 0.6082 GB, free: 69.6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006527/1.456, allocations: 128 kB / 0.6083 GB, free: 69.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003834/1.456, allocations: 0.5871 MB / 0.6089 GB, free: 68.88 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005543/1.462, allocations: 2.199 MB / 0.611 GB, free: 66.68 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007857/1.47, allocations: 5.925 MB / 0.6168 GB, free: 58.89 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008012/1.478, allocations: 3.557 MB / 0.6203 GB, free: 55.34 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001062/1.478, allocations: 40 kB / 0.6203 GB, free: 55.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.0259/1.504, allocations: 8.82 MB / 0.6289 GB, free: 46.47 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.75e-05/1.504, allocations: 60 kB / 0.629 GB, free: 46.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001701/1.504, allocations: 137.4 kB / 0.6291 GB, free: 46.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006457/1.51, allocations: 1.222 MB / 0.6303 GB, free: 45.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00811/1.519, allocations: 1.411 MB / 0.6317 GB, free: 43.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01712/1.536, allocations: 7.751 MB / 0.6393 GB, free: 35.76 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00657/1.542, allocations: 339.5 kB / 0.6396 GB, free: 35.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001205/1.544, allocations: 385.4 kB / 0.64 GB, free: 35.05 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (766): * Single equations (assignments): 762 * 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 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006808/1.55, allocations: 2.478 MB / 0.6424 GB, free: 32.56 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001784/1.552, allocations: 422.5 kB / 0.6428 GB, free: 32.14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01605/1.568, allocations: 3.87 MB / 0.6466 GB, free: 28.25 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.12e-05/1.569, allocations: 29.09 kB / 0.6466 GB, free: 28.23 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.598e-05/1.569, allocations: 4 kB / 0.6466 GB, free: 28.22 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.141e-05/1.569, allocations: 11.97 kB / 0.6466 GB, free: 28.21 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02911/1.598, allocations: 10.22 MB / 0.6566 GB, free: 17.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-05/1.598, allocations: 8.031 kB / 0.6566 GB, free: 17.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003137/1.601, allocations: 343.5 kB / 0.6569 GB, free: 17.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005893/1.607, allocations: 0.9844 MB / 0.6579 GB, free: 16.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004564/1.607, allocations: 40.78 kB / 0.6579 GB, free: 16.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01464/1.622, allocations: 6.426 MB / 0.6642 GB, free: 9.949 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/1.622, allocations: 8.062 kB / 0.6642 GB, free: 9.941 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01775/1.64, allocations: 7.237 MB / 0.6713 GB, free: 2.43 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002582/1.643, allocations: 0.7415 MB / 0.672 GB, free: 1.664 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00109/1.644, allocations: 47.94 kB / 0.672 GB, free: 1.617 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003309/1.647, allocations: 108.5 kB / 0.6721 GB, free: 1.512 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007003/1.648, allocations: 145.1 kB / 0.6723 GB, free: 1.371 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002257/1.648, allocations: 57.02 kB / 0.6723 GB, free: 1.316 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.007335/1.655, allocations: 3.024 MB / 0.6753 GB, free: 14.29 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.81e-07/1.655, allocations: 0 / 0.6753 GB, free: 14.29 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00811/1.664, allocations: 1.2 MB / 0.6765 GB, free: 13.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 (173): * Single equations (assignments): 169 * 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 {(1,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02197/1.686, allocations: 9.076 MB / 0.6853 GB, free: 3.867 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.2922/1.978, allocations: 5.469 MB / 0.6907 GB, free: 139.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/1.978, allocations: 1.312 kB / 0.6907 GB, free: 139.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004878/1.983, allocations: 1.823 MB / 0.6924 GB, free: 139.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004544/1.987, allocations: 0.5106 MB / 0.6929 GB, free: 139 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06481/2.052, allocations: 113.8 MB / 0.8041 GB, free: 29.98 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008685/2.061, allocations: 3.987 MB / 0.808 GB, free: 28.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005395/2.066, allocations: 2.342 MB / 0.8103 GB, free: 26.61 MB / 426.7 MB Notification: Performance of SimCode: time 1.703e-06/2.066, allocations: 0 / 0.8103 GB, free: 26.61 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.803/6.869, allocations: 117.3 MB / 0.9248 GB, free: 94.16 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat does not exist to compare? outputFormat=mat