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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 221.4 MB / 235.5 MB, free: 2.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008939/0.0008939, allocations: 95.84 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.165e-05/3.167e-05, allocations: 7.984 kB / 343.9 MB, free: 4.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1138, allocations: 50.41 MB / 394.3 MB, free: 1.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3588/0.4727, allocations: 101.4 MB / 495.7 MB, free: 2.098 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002429/0.473, allocations: 87.95 kB / 495.8 MB, free: 2.012 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5806/1.054, allocations: 128.6 MB / 0.6097 GB, free: 90.84 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.595e-06/1.054, allocations: 7.969 kB / 0.6097 GB, free: 90.83 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003331/1.054, allocations: 117.2 kB / 0.6099 GB, free: 90.83 MB / 426.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.02063/1.075, allocations: 6.318 MB / 0.616 GB, free: 86.8 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/1.075, allocations: 11.19 kB / 0.616 GB, free: 86.8 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004982/1.08, allocations: 1.311 MB / 0.6173 GB, free: 86.06 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03252/1.112, allocations: 8.31 MB / 0.6254 GB, free: 78.34 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01793/1.13, allocations: 6.978 MB / 0.6322 GB, free: 71.39 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004251/1.131, allocations: 458 kB / 0.6327 GB, free: 70.98 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003602/1.134, allocations: 0.595 MB / 0.6333 GB, free: 70.43 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0315/1.166, allocations: 15.6 MB / 0.6485 GB, free: 53.8 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002375/1.166, allocations: 71.34 kB / 0.6486 GB, free: 53.73 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001258/1.167, allocations: 287.1 kB / 0.6488 GB, free: 53.49 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001767/1.169, allocations: 1.625 MB / 0.6504 GB, free: 51.87 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02438/1.193, allocations: 13.76 MB / 0.6639 GB, free: 38.09 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3635/1.557, allocations: 64.04 MB / 0.7264 GB, free: 58.55 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01519/1.572, allocations: 6.381 MB / 0.7326 GB, free: 57.32 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00559/1.578, allocations: 3.469 MB / 0.736 GB, free: 57.28 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02319/1.601, allocations: 14.3 MB / 0.75 GB, free: 53.93 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.719e-05/1.601, allocations: 60.28 kB / 0.75 GB, free: 53.88 MB / 442.7 MB Notification: Performance of pre-optimization done (n=286): time 7.163e-06/1.601, allocations: 0 / 0.75 GB, free: 53.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=336): time 0.08534/1.687, allocations: 29.56 MB / 0.7789 GB, free: 47.58 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.44e-05/1.687, allocations: 214.7 kB / 0.7791 GB, free: 47.36 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008223/1.695, allocations: 4.77 MB / 0.7838 GB, free: 45.64 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009797/1.696, allocations: 73.64 kB / 0.7839 GB, free: 45.58 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002752/1.699, allocations: 4.437 MB / 0.7882 GB, free: 42.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001664/1.7, allocations: 1.245 MB / 0.7894 GB, free: 41.25 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005162/1.701, allocations: 171.1 kB / 0.7896 GB, free: 41.12 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004529/1.701, allocations: 0.6805 MB / 0.7902 GB, free: 40.66 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006097/1.707, allocations: 4.465 MB / 0.7946 GB, free: 39.01 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009119/1.717, allocations: 9.425 MB / 0.8038 GB, free: 30.73 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009275/1.726, allocations: 6.401 MB / 0.81 GB, free: 27.25 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001433/1.726, allocations: 54.3 kB / 0.8101 GB, free: 27.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.04172/1.768, allocations: 18.51 MB / 0.8282 GB, free: 12.93 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000285/1.768, allocations: 84.06 kB / 0.8283 GB, free: 12.85 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003923/1.769, allocations: 178.4 kB / 0.8284 GB, free: 12.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02096/1.79, allocations: 5.627 MB / 0.8339 GB, free: 9.281 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007861/1.797, allocations: 2.052 MB / 0.8359 GB, free: 7.492 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03169/1.829, allocations: 23.63 MB / 0.859 GB, free: 15.59 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009323/1.839, allocations: 0.5397 MB / 0.8595 GB, free: 15.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002342/1.841, allocations: 0.5011 MB / 0.86 GB, free: 14.55 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1060): * Single equations (assignments): 1052 * 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.003533/1.844, allocations: 0.7569 MB / 0.8608 GB, free: 13.79 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001753/1.846, allocations: 0.4936 MB / 0.8612 GB, free: 13.29 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03201/1.878, allocations: 12.27 MB / 0.8732 GB, free: 0.9531 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001165/1.878, allocations: 55.95 kB / 0.8733 GB, free: 0.8984 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.022e-05/1.878, allocations: 9.781 kB / 0.8733 GB, free: 0.8906 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.376e-05/1.879, allocations: 15.94 kB / 0.8733 GB, free: 0.875 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05645/1.935, allocations: 23.85 MB / 0.8966 GB, free: 8.551 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-05/1.935, allocations: 7.984 kB / 0.8966 GB, free: 8.543 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003667/1.939, allocations: 0.5661 MB / 0.8972 GB, free: 7.977 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01896/1.958, allocations: 4.646 MB / 0.9017 GB, free: 3.32 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001181/1.959, allocations: 61.19 kB / 0.9017 GB, free: 3.262 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3593/2.318, allocations: 18.91 MB / 0.9202 GB, free: 148.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.199e-05/2.318, allocations: 9.125 kB / 0.9202 GB, free: 148.8 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03654/2.355, allocations: 17.26 MB / 0.9371 GB, free: 144.3 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002005/2.357, allocations: 0.5328 MB / 0.9376 GB, free: 144.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001788/2.359, allocations: 62.2 kB / 0.9377 GB, free: 144.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003761/2.363, allocations: 252.3 kB / 0.9379 GB, free: 144.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009555/2.364, allocations: 189.9 kB / 0.9381 GB, free: 144.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002817/2.364, allocations: 86.92 kB / 0.9382 GB, free: 144.1 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006015/2.37, allocations: 3.304 MB / 0.9414 GB, free: 143 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.91e-07/2.37, allocations: 0 / 0.9414 GB, free: 143 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009983/2.38, allocations: 1.704 MB / 0.9431 GB, free: 142.8 MB / 0.4948 GB 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 () * 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.03464/2.415, allocations: 18.98 MB / 0.9616 GB, free: 134.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01777/2.432, allocations: 10.33 MB / 0.9717 GB, free: 131.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/2.432, allocations: 0 / 0.9717 GB, free: 131.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006539/2.439, allocations: 3.903 MB / 0.9755 GB, free: 129.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005/2.444, allocations: 0.5851 MB / 0.9761 GB, free: 129.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0433/2.487, allocations: 15.53 MB / 0.9912 GB, free: 117.1 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009099/2.497, allocations: 4.748 MB / 0.9959 GB, free: 113.6 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0105/2.507, allocations: 2.988 MB / 0.9988 GB, free: 111.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00652/2.514, allocations: 2.919 MB / 1.002 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of SimCode: time 1.964e-06/2.514, allocations: 3.75 kB / 1.002 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4993/3.013, allocations: 134.8 MB / 1.133 GB, free: 133.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001729/3.013, allocations: 177.6 kB / 1.133 GB, free: 133.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.165/9.178, allocations: 11.94 kB / 1.133 GB, free: 133 MB / 0.4948 GB (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