Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0008082/0.0008083, allocations: 96.47 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008601/0.00086, allocations: 198.5 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002242/0.0002242, allocations: 4 kB / 306.8 MB, free: 1.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1105, allocations: 51.5 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.279/0.3895, allocations: 48.4 MB / 406.7 MB, free: 7.621 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02959/0.4192, allocations: 10.68 MB / 417.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01281/0.432, allocations: 230.7 kB / 417.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009352/0.4414, allocations: 2.511 MB / 420.1 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02495/0.4664, allocations: 7.573 MB / 427.7 MB, free: 6.211 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004574/0.471, allocations: 0.8588 MB / 428.6 MB, free: 5.352 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.07867/0.5497, allocations: 62.95 MB / 491.5 MB, free: 6.328 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01001/0.5598, allocations: 5.019 MB / 496.5 MB, free: 1.258 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004983/0.5648, allocations: 1.884 MB / 498.4 MB, free: 15.37 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005998/0.5708, allocations: 3.124 MB / 0.4898 GB, free: 12.23 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001965/0.5728, allocations: 236 kB / 0.49 GB, free: 12 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004/0.5769, allocations: 1.104 MB / 0.4911 GB, free: 10.9 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004369/0.5813, allocations: 2.575 MB / 0.4936 GB, free: 8.316 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002726/0.584, allocations: 1.201 MB / 0.4948 GB, free: 7.105 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01102/0.5951, allocations: 8.078 MB / 0.5027 GB, free: 15.01 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.5951, allocations: 0 / 0.5027 GB, free: 15.01 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.5951, allocations: 0 / 0.5027 GB, free: 15.01 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004699/0.5956, allocations: 0 / 0.5027 GB, free: 15.01 MB / 430.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.01602/0.6116, allocations: 6.305 MB / 0.5088 GB, free: 8.621 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.6117, allocations: 8.031 kB / 0.5088 GB, free: 8.613 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004249/0.616, allocations: 1.133 MB / 0.5099 GB, free: 7.465 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03934/0.6553, allocations: 7.636 MB / 0.5174 GB, free: 15.81 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01195/0.6673, allocations: 4.502 MB / 0.5218 GB, free: 11.25 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003915/0.6678, allocations: 320 kB / 0.5221 GB, free: 10.93 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002526/0.6703, allocations: 431.6 kB / 0.5225 GB, free: 10.51 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2726/0.9429, allocations: 15.6 MB / 0.5377 GB, free: 143.9 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002428/0.9432, allocations: 57.62 kB / 0.5378 GB, free: 143.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007846/0.944, allocations: 204.5 kB / 0.538 GB, free: 143.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006265/0.9503, allocations: 3.218 MB / 0.5411 GB, free: 143.3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0296/0.9799, allocations: 13.86 MB / 0.5547 GB, free: 139 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06624/1.046, allocations: 57.38 MB / 0.6107 GB, free: 84.41 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01231/1.059, allocations: 6.463 MB / 0.617 GB, free: 77.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004193/1.063, allocations: 3.557 MB / 0.6205 GB, free: 74.13 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01944/1.082, allocations: 14.31 MB / 0.6345 GB, free: 59.39 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.616e-05/1.082, allocations: 60.56 kB / 0.6345 GB, free: 59.32 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 5.551e-06/1.082, allocations: 0 / 0.6345 GB, free: 59.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.1297/1.212, allocations: 41.88 MB / 0.6754 GB, free: 17.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.129e-05/1.212, allocations: 214 kB / 0.6756 GB, free: 17.15 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009184/1.221, allocations: 5.467 MB / 0.681 GB, free: 11.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000898/1.222, allocations: 73.7 kB / 0.681 GB, free: 11.62 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002651/1.225, allocations: 4.412 MB / 0.6853 GB, free: 7.215 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001599/1.227, allocations: 1.241 MB / 0.6866 GB, free: 5.984 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009137/1.227, allocations: 179.3 kB / 0.6867 GB, free: 5.812 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004111/1.228, allocations: 0.6858 MB / 0.6874 GB, free: 5.117 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006023/1.234, allocations: 4.585 MB / 0.6919 GB, free: 0.5234 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01276/1.247, allocations: 9.56 MB / 0.7012 GB, free: 4.508 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2387/1.485, allocations: 6.457 MB / 0.7075 GB, free: 143.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000152/1.486, allocations: 49.38 kB / 0.7076 GB, free: 143.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04311/1.529, allocations: 18.9 MB / 0.726 GB, free: 138.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001017/1.529, allocations: 79.69 kB / 0.7261 GB, free: 138.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001882/1.529, allocations: 175.8 kB / 0.7263 GB, free: 138.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01878/1.548, allocations: 5.836 MB / 0.732 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006648/1.555, allocations: 2.051 MB / 0.734 GB, free: 137.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02612/1.581, allocations: 24.3 MB / 0.7577 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006556/1.587, allocations: 0.5461 MB / 0.7582 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001429/1.589, allocations: 0.5 MB / 0.7587 GB, free: 117.2 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.005846/1.595, allocations: 3.097 MB / 0.7617 GB, free: 114.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001203/1.596, allocations: 0.4943 MB / 0.7622 GB, free: 113.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02658/1.622, allocations: 12.6 MB / 0.7745 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.878e-05/1.623, allocations: 59.92 kB / 0.7746 GB, free: 101.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.61e-05/1.623, allocations: 8 kB / 0.7746 GB, free: 101.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.657e-05/1.623, allocations: 15.94 kB / 0.7746 GB, free: 101.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04454/1.667, allocations: 24.3 MB / 0.7983 GB, free: 76.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.92e-05/1.667, allocations: 4 kB / 0.7984 GB, free: 76.49 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002727/1.67, allocations: 0.5694 MB / 0.7989 GB, free: 75.92 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01575/1.686, allocations: 4.841 MB / 0.8036 GB, free: 71.07 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006131/1.686, allocations: 58.09 kB / 0.8037 GB, free: 71.02 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02085/1.707, allocations: 19.58 MB / 0.8228 GB, free: 51.25 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/1.707, allocations: 8 kB / 0.8228 GB, free: 51.24 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04507/1.752, allocations: 16.98 MB / 0.8394 GB, free: 34.14 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002403/1.755, allocations: 0.5335 MB / 0.8399 GB, free: 33.58 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002444/1.757, allocations: 57.23 kB / 0.84 GB, free: 33.52 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005426/1.763, allocations: 256.3 kB / 0.8402 GB, free: 33.27 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001439/1.764, allocations: 193.6 kB / 0.8404 GB, free: 33.08 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008782/1.765, allocations: 85.17 kB / 0.8405 GB, free: 33 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.009758/1.775, allocations: 3.393 MB / 0.8438 GB, free: 29.63 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.81e-07/1.775, allocations: 6.516 kB / 0.8438 GB, free: 29.63 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01328/1.788, allocations: 1.711 MB / 0.8455 GB, free: 27.93 MB / 462.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.03583/1.824, allocations: 17.64 MB / 0.8627 GB, free: 10.11 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01627/1.841, allocations: 10.54 MB / 0.873 GB, free: 15.57 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.23e-05/1.841, allocations: 2 kB / 0.873 GB, free: 15.57 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2397/2.08, allocations: 3.997 MB / 0.8769 GB, free: 161.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004292/2.085, allocations: 0.6206 MB / 0.8775 GB, free: 161.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1235/2.208, allocations: 64.5 MB / 0.9405 GB, free: 114.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009086/2.217, allocations: 4.62 MB / 0.945 GB, free: 110.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.008612/2.226, allocations: 2.982 MB / 0.9479 GB, free: 107.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006113/2.232, allocations: 2.917 MB / 0.9508 GB, free: 104.2 MB / 478.1 MB Notification: Performance of SimCode: time 1.503e-06/2.232, allocations: 0 / 0.9508 GB, free: 104.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4269/2.659, allocations: 135.4 MB / 1.083 GB, free: 127.8 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000171/2.659, allocations: 203.6 kB / 1.083 GB, free: 127.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.957/7.616, allocations: 3.375 kB / 1.083 GB, free: 127.6 MB / 478.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat