Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 95.72 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 179.1 kB / 17.19 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003545/0.0003546, allocations: 7.125 kB / 300.8 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1215, allocations: 50.42 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.04075/0.1623, allocations: 45.71 MB / 396.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02406/0.1864, allocations: 11.08 MB / 408 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008946/0.1954, allocations: 227.4 kB / 408.2 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007628/0.203, allocations: 2.29 MB / 410.5 MB, free: 196 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02127/0.2243, allocations: 6.685 MB / 417.2 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004076/0.2284, allocations: 0.8503 MB / 418.1 MB, free: 8.641 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.3088/0.5372, allocations: 49.1 MB / 467.2 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00738/0.5446, allocations: 4.988 MB / 472.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00315/0.5478, allocations: 1.563 MB / 473.7 MB, free: 13.35 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003247/0.5511, allocations: 2.255 MB / 476 MB, free: 11.76 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000905/0.552, allocations: 236 kB / 476.2 MB, free: 11.53 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00232/0.5543, allocations: 1.104 MB / 477.3 MB, free: 10.64 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002389/0.5568, allocations: 2.389 MB / 479.7 MB, free: 8.973 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001413/0.5582, allocations: 1.201 MB / 480.9 MB, free: 8.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008706/0.5669, allocations: 8.077 MB / 489 MB, free: 1.555 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.5669, allocations: 0 / 489 MB, free: 1.555 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5669, allocations: 0 / 489 MB, free: 1.555 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003453/0.5673, allocations: 0 / 489 MB, free: 1.555 MB / 366.1 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.01546/0.5828, allocations: 6.428 MB / 495.4 MB, free: 11.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.5828, allocations: 16.03 kB / 495.4 MB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00384/0.5867, allocations: 1.131 MB / 496.5 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04903/0.6357, allocations: 9.763 MB / 0.4944 GB, free: 1.863 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01211/0.6479, allocations: 4.308 MB / 0.4986 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003739/0.6483, allocations: 316.6 kB / 0.4989 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002645/0.651, allocations: 434.6 kB / 0.4994 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02946/0.6805, allocations: 15.75 MB / 0.5147 GB, free: 2.102 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002078/0.6807, allocations: 62.75 kB / 0.5148 GB, free: 2.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001048/0.6818, allocations: 203.5 kB / 0.515 GB, free: 2.012 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004974/0.6868, allocations: 3.215 MB / 0.5181 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02769/0.7145, allocations: 14.05 MB / 0.5319 GB, free: 5.57 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3152/1.03, allocations: 57.53 MB / 0.588 GB, free: 124.2 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01495/1.045, allocations: 6.576 MB / 0.5945 GB, free: 122.9 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0237/1.068, allocations: 14.43 MB / 0.6085 GB, free: 119.5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.43e-05/1.069, allocations: 63.41 kB / 0.6086 GB, free: 119.4 MB / 462.1 MB Notification: Performance of pre-optimization done (n=286): time 7.354e-06/1.069, allocations: 1.625 kB / 0.6086 GB, free: 119.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=336): time 0.1355/1.204, allocations: 42.72 MB / 0.6503 GB, free: 91.28 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/1.204, allocations: 212.5 kB / 0.6505 GB, free: 91.03 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007186/1.212, allocations: 5.703 MB / 0.6561 GB, free: 85.35 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009044/1.212, allocations: 74.95 kB / 0.6562 GB, free: 85.27 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00215/1.215, allocations: 4.419 MB / 0.6605 GB, free: 80.87 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001641/1.216, allocations: 1.242 MB / 0.6617 GB, free: 79.64 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005224/1.217, allocations: 172 kB / 0.6619 GB, free: 79.47 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003623/1.217, allocations: 0.6844 MB / 0.6625 GB, free: 78.78 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00596/1.223, allocations: 4.589 MB / 0.667 GB, free: 74.19 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008792/1.232, allocations: 9.522 MB / 0.6763 GB, free: 62.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009053/1.241, allocations: 6.469 MB / 0.6826 GB, free: 55.97 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003246/1.241, allocations: 51.72 kB / 0.6827 GB, free: 55.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04525/1.287, allocations: 18.91 MB / 0.7011 GB, free: 37.21 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002485/1.287, allocations: 84.03 kB / 0.7012 GB, free: 37.13 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003368/1.287, allocations: 175.9 kB / 0.7014 GB, free: 36.96 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02184/1.309, allocations: 5.825 MB / 0.7071 GB, free: 31.12 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007598/1.317, allocations: 2.051 MB / 0.7091 GB, free: 29.07 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02874/1.346, allocations: 24.93 MB / 0.7334 GB, free: 3.859 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00778/1.353, allocations: 0.5513 MB / 0.734 GB, free: 3.309 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001807/1.355, allocations: 0.5053 MB / 0.7345 GB, free: 2.805 MB / 462.1 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.007149/1.362, allocations: 3.089 MB / 0.7375 GB, free: 15.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001706/1.364, allocations: 0.4934 MB / 0.738 GB, free: 15.21 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03397/1.398, allocations: 12.6 MB / 0.7503 GB, free: 2.535 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001186/1.398, allocations: 51.98 kB / 0.7503 GB, free: 2.484 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.12e-05/1.398, allocations: 12 kB / 0.7503 GB, free: 2.473 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.865e-05/1.398, allocations: 19.94 kB / 0.7504 GB, free: 2.453 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2765/1.675, allocations: 24.32 MB / 0.7741 GB, free: 171.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.791e-05/1.675, allocations: 5.344 kB / 0.7741 GB, free: 171.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003255/1.678, allocations: 0.5771 MB / 0.7747 GB, free: 171.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01928/1.698, allocations: 4.839 MB / 0.7794 GB, free: 171.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008088/1.698, allocations: 52.7 kB / 0.7794 GB, free: 171.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02344/1.722, allocations: 20.21 MB / 0.7992 GB, free: 164.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.175e-06/1.722, allocations: 14.97 kB / 0.7992 GB, free: 164.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03256/1.754, allocations: 17.7 MB / 0.8165 GB, free: 155.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001675/1.756, allocations: 0.5524 MB / 0.817 GB, free: 155.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001517/1.758, allocations: 57.95 kB / 0.8171 GB, free: 155.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003213/1.761, allocations: 259.6 kB / 0.8173 GB, free: 155.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006881/1.762, allocations: 189 kB / 0.8175 GB, free: 155.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002449/1.762, allocations: 81.73 kB / 0.8176 GB, free: 155.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004536/1.766, allocations: 3.59 MB / 0.8211 GB, free: 152 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.71e-07/1.766, allocations: 0 / 0.8211 GB, free: 152 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007849/1.774, allocations: 1.736 MB / 0.8228 GB, free: 150.3 MB / 494.1 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.03261/1.807, allocations: 19.43 MB / 0.8418 GB, free: 130.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01455/1.822, allocations: 10.55 MB / 0.8521 GB, free: 120.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.324e-05/1.822, allocations: 0 / 0.8521 GB, free: 120.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00551/1.827, allocations: 4.005 MB / 0.856 GB, free: 116.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003663/1.831, allocations: 0.5822 MB / 0.8565 GB, free: 115.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2687/2.099, allocations: 149.5 MB / 1.003 GB, free: 132.6 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007921/2.107, allocations: 4.745 MB / 1.007 GB, free: 131.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.008017/2.116, allocations: 2.987 MB / 1.01 GB, free: 131.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004734/2.12, allocations: 2.923 MB / 1.013 GB, free: 131.6 MB / 494.1 MB Notification: Performance of SimCode: time 1.884e-06/2.12, allocations: 0 / 1.013 GB, free: 131.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3802/2.501, allocations: 134.9 MB / 1.145 GB, free: 148.8 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003468/2.501, allocations: 204.4 kB / 1.145 GB, free: 148.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.141/7.642, allocations: 3.938 kB / 1.145 GB, free: 148.5 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat