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.001035/0.001034, allocations: 174.8 kB / 16.72 MB, free: 5.078 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.252/1.252, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0008364/0.0008365, allocations: 86.41 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002997/0.0002997, allocations: 11.98 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2047/0.2051, allocations: 47.57 MB / 375.2 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.03211/0.2372, allocations: 50.29 MB / 425.5 MB, free: 14.29 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02579/0.2631, allocations: 11.3 MB / 436.8 MB, free: 2.961 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009483/0.2726, allocations: 243.4 kB / 437 MB, free: 2.723 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008041/0.2807, allocations: 2.578 MB / 439.6 MB, free: 136 kB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01886/0.2996, allocations: 7.728 MB / 447.3 MB, free: 8.371 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004062/0.3037, allocations: 0.9743 MB / 448.3 MB, free: 7.398 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.041/0.3447, allocations: 35.76 MB / 484 MB, free: 3.59 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00909/0.3538, allocations: 7.109 MB / 491.1 MB, free: 12.39 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002738/0.3566, allocations: 1.646 MB / 492.8 MB, free: 10.73 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003193/0.3598, allocations: 2.547 MB / 495.3 MB, free: 8.18 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006279/0.3605, allocations: 184 kB / 495.5 MB, free: 8 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002457/0.363, allocations: 1.388 MB / 496.9 MB, free: 6.609 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001947/0.3649, allocations: 2.193 MB / 499.1 MB, free: 4.41 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002468/0.3674, allocations: 2.414 MB / 0.4898 GB, free: 1.977 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1752/0.5426, allocations: 7.574 MB / 0.4972 GB, free: 42.92 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.5427, allocations: 0 / 0.4972 GB, free: 42.92 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.5427, allocations: 0 / 0.4972 GB, free: 42.92 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002065/0.5429, allocations: 0 / 0.4972 GB, free: 42.92 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.009459/0.5524, allocations: 5.098 MB / 0.5021 GB, free: 40.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.5524, allocations: 12.72 kB / 0.5021 GB, free: 40.66 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001313/0.5538, allocations: 0.9277 MB / 0.5031 GB, free: 40.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0342/0.588, allocations: 6.112 MB / 0.509 GB, free: 40.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009342/0.5974, allocations: 4.705 MB / 0.5136 GB, free: 39.42 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002286/0.5976, allocations: 304 kB / 0.5139 GB, free: 39.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001488/0.5991, allocations: 441.3 kB / 0.5143 GB, free: 39.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01927/0.6184, allocations: 12.31 MB / 0.5263 GB, free: 35.51 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001233/0.6186, allocations: 51.45 kB / 0.5264 GB, free: 35.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004288/0.619, allocations: 191.3 kB / 0.5266 GB, free: 35.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002441/0.6215, allocations: 2.039 MB / 0.5286 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01741/0.6389, allocations: 10.33 MB / 0.5387 GB, free: 29.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04356/0.6825, allocations: 44.18 MB / 0.5818 GB, free: 8.285 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01137/0.6939, allocations: 4.833 MB / 0.5865 GB, free: 4.285 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002302/0.6962, allocations: 1.957 MB / 0.5884 GB, free: 2.934 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01006/0.7063, allocations: 7.008 MB / 0.5953 GB, free: 11.72 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.355e-05/0.7063, allocations: 49.91 kB / 0.5953 GB, free: 11.66 MB / 410.7 MB Notification: Performance of pre-optimization done (n=179): time 4.449e-06/0.7064, allocations: 0 / 0.5953 GB, free: 11.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=223): time 0.06442/0.7708, allocations: 19.29 MB / 0.6142 GB, free: 8.383 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.7709, allocations: 214.4 kB / 0.6144 GB, free: 8.133 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005684/0.7766, allocations: 4.489 MB / 0.6188 GB, free: 3.633 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002285/0.7769, allocations: 57.7 kB / 0.6188 GB, free: 3.57 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002268/0.7791, allocations: 3.578 MB / 0.6223 GB, free: 12 kB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007262/0.7799, allocations: 0.8293 MB / 0.6231 GB, free: 15.18 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002609/0.7801, allocations: 130.8 kB / 0.6232 GB, free: 15.06 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003398/0.7805, allocations: 0.5668 MB / 0.6238 GB, free: 14.48 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003093/0.7836, allocations: 2.206 MB / 0.6259 GB, free: 12.27 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005385/0.789, allocations: 5.945 MB / 0.6317 GB, free: 4.539 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01008/0.7991, allocations: 8.881 MB / 0.6404 GB, free: 10.36 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.342e-05/0.7992, allocations: 40 kB / 0.6405 GB, free: 10.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.0162/0.8154, allocations: 8.994 MB / 0.6492 GB, free: 2.117 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.527e-05/0.8155, allocations: 60 kB / 0.6493 GB, free: 2.059 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001348/0.8157, allocations: 132 kB / 0.6494 GB, free: 1.93 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00353/0.8192, allocations: 1.207 MB / 0.6506 GB, free: 0.7188 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003853/0.8231, allocations: 1.417 MB / 0.652 GB, free: 15.43 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01095/0.834, allocations: 7.536 MB / 0.6593 GB, free: 7.828 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004797/0.8389, allocations: 339.5 kB / 0.6597 GB, free: 7.496 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000938/0.8398, allocations: 376 kB / 0.66 GB, free: 7.129 MB / 474.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.00474/0.8446, allocations: 2.49 MB / 0.6625 GB, free: 4.758 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008585/0.8455, allocations: 408.5 kB / 0.6629 GB, free: 4.355 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00785/0.8533, allocations: 3.883 MB / 0.6666 GB, free: 492 kB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-05/0.8534, allocations: 24 kB / 0.6667 GB, free: 468 kB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.808e-05/0.8534, allocations: 8 kB / 0.6667 GB, free: 460 kB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.373e-05/0.8534, allocations: 19.73 kB / 0.6667 GB, free: 444 kB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1755/1.029, allocations: 10.17 MB / 0.6766 GB, free: 184 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.438e-05/1.029, allocations: 5.656 kB / 0.6766 GB, free: 184 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001473/1.03, allocations: 351.1 kB / 0.677 GB, free: 184 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003084/1.034, allocations: 0.9837 MB / 0.6779 GB, free: 183.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001431/1.034, allocations: 43.02 kB / 0.678 GB, free: 183.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008451/1.042, allocations: 6.22 MB / 0.684 GB, free: 180.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/1.042, allocations: 11.78 kB / 0.684 GB, free: 180.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008473/1.051, allocations: 6.599 MB / 0.6905 GB, free: 178 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001273/1.052, allocations: 0.7244 MB / 0.6912 GB, free: 177.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000356/1.052, allocations: 45.41 kB / 0.6912 GB, free: 177.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001368/1.054, allocations: 111.1 kB / 0.6914 GB, free: 177.7 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003869/1.054, allocations: 147.4 kB / 0.6915 GB, free: 177.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001295/1.054, allocations: 63.88 kB / 0.6916 GB, free: 177.6 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003156/1.057, allocations: 2.824 MB / 0.6943 GB, free: 176.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.71e-07/1.057, allocations: 0 / 0.6943 GB, free: 176.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003764/1.061, allocations: 1.181 MB / 0.6955 GB, free: 176.5 MB / 474.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.008547/1.07, allocations: 7.317 MB / 0.7026 GB, free: 171.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005937/1.076, allocations: 5.476 MB / 0.708 GB, free: 166 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/1.076, allocations: 7.984 kB / 0.708 GB, free: 165.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001847/1.078, allocations: 1.821 MB / 0.7097 GB, free: 164.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005132/1.083, allocations: 0.5342 MB / 0.7103 GB, free: 163.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04897/1.132, allocations: 41.46 MB / 0.7508 GB, free: 118.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003085/1.135, allocations: 3.883 MB / 0.7545 GB, free: 114.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002157/1.137, allocations: 2.335 MB / 0.7568 GB, free: 112 MB / 474.7 MB Notification: Performance of SimCode: time 8.32e-07/1.137, allocations: 4 kB / 0.7568 GB, free: 112 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.986/9.123, allocations: 110.2 MB / 0.8644 GB, free: 168.9 MB / 474.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)