Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001582/0.001583, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.582/1.582, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001016/0.001015, allocations: 94.09 kB / 292.1 MB, free: 5.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.221e-05/3.225e-05, allocations: 0 / 350.6 MB, free: 2.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1395, allocations: 51.48 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.456/0.5955, allocations: 104.5 MB / 0.4948 GB, free: 1.188 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/0.5958, allocations: 91.5 kB / 0.4949 GB, free: 1.141 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7082/1.304, allocations: 147 MB / 0.6385 GB, free: 75.11 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.795e-06/1.304, allocations: 0 / 0.6385 GB, free: 75.11 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005836/1.305, allocations: 145.9 kB / 0.6386 GB, free: 75.11 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.02912/1.334, allocations: 7.546 MB / 0.646 GB, free: 72.39 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.799e-05/1.334, allocations: 9.219 kB / 0.646 GB, free: 72.39 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00659/1.341, allocations: 1.187 MB / 0.6471 GB, free: 72.3 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04569/1.386, allocations: 11.73 MB / 0.6586 GB, free: 69.75 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02709/1.413, allocations: 9.001 MB / 0.6674 GB, free: 64.78 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000684/1.414, allocations: 0.5214 MB / 0.6679 GB, free: 64.56 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004564/1.419, allocations: 0.7025 MB / 0.6686 GB, free: 64.34 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04678/1.465, allocations: 17.25 MB / 0.6854 GB, free: 51.05 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005404/1.466, allocations: 103.1 kB / 0.6855 GB, free: 50.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002655/1.469, allocations: 330.4 kB / 0.6858 GB, free: 50.66 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002123/1.471, allocations: 1.451 MB / 0.6872 GB, free: 49.21 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03185/1.503, allocations: 14.3 MB / 0.7012 GB, free: 34.9 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4929/1.996, allocations: 73.11 MB / 0.7726 GB, free: 38.93 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02409/2.02, allocations: 8.718 MB / 0.7811 GB, free: 38.24 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006296/2.026, allocations: 4.724 MB / 0.7857 GB, free: 38.21 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03439/2.061, allocations: 17.7 MB / 0.803 GB, free: 36.07 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.408e-05/2.061, allocations: 69.94 kB / 0.8031 GB, free: 36.04 MB / 458.7 MB Notification: Performance of pre-optimization done (n=281): time 5.77e-06/2.061, allocations: 0 / 0.8031 GB, free: 36.04 MB / 458.7 MB Notification: Performance of matching and sorting (n=374): time 0.1821/2.243, allocations: 57.37 MB / 0.8591 GB, free: 25.36 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/2.243, allocations: 380.6 kB / 0.8595 GB, free: 24.95 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0117/2.255, allocations: 5.433 MB / 0.8648 GB, free: 22.45 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001138/2.256, allocations: 77.7 kB / 0.8649 GB, free: 22.36 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003567/2.259, allocations: 4.871 MB / 0.8696 GB, free: 18 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002004/2.261, allocations: 1.37 MB / 0.8709 GB, free: 16.79 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008756/2.262, allocations: 179.9 kB / 0.8711 GB, free: 16.61 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004351/2.263, allocations: 0.689 MB / 0.8718 GB, free: 16.02 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007607/2.27, allocations: 5.408 MB / 0.8771 GB, free: 11.11 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01061/2.281, allocations: 10.38 MB / 0.8872 GB, free: 15 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01215/2.293, allocations: 7.378 MB / 0.8944 GB, free: 8.703 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000179/2.293, allocations: 52 kB / 0.8945 GB, free: 8.652 MB / 474.7 MB Notification: Performance of matching and sorting (n=1165) (initialization): time 0.05749/2.351, allocations: 21.51 MB / 0.9155 GB, free: 6.008 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001899/2.351, allocations: 80 kB / 0.9155 GB, free: 5.93 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003374/2.352, allocations: 172 kB / 0.9157 GB, free: 5.762 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02159/2.373, allocations: 6.518 MB / 0.9221 GB, free: 15.22 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008382/2.382, allocations: 2.051 MB / 0.9241 GB, free: 13.17 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3843/2.766, allocations: 32.32 MB / 0.9556 GB, free: 114.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009182/2.775, allocations: 0.7024 MB / 0.9563 GB, free: 114.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002242/2.778, allocations: 0.5107 MB / 0.9568 GB, free: 114.9 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 787 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1023): * Single equations (assignments): 1016 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,77.8%) 67,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.003135/2.781, allocations: 0.7686 MB / 0.9576 GB, free: 114.7 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00193/2.783, allocations: 0.5789 MB / 0.9581 GB, free: 114.7 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03645/2.819, allocations: 15.39 MB / 0.9732 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001142/2.819, allocations: 52.25 kB / 0.9732 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.665e-05/2.819, allocations: 18.94 kB / 0.9732 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001087/2.819, allocations: 21.2 kB / 0.9733 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05864/2.878, allocations: 30.37 MB / 1.003 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.166e-05/2.878, allocations: 3.219 kB / 1.003 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003214/2.881, allocations: 0.5737 MB / 1.003 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0188/2.9, allocations: 6.147 MB / 1.009 GB, free: 99.44 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001134/2.901, allocations: 61.16 kB / 1.01 GB, free: 99.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03945/2.941, allocations: 30.69 MB / 1.04 GB, free: 85.75 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/2.941, allocations: 11.83 kB / 1.04 GB, free: 85.74 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03955/2.98, allocations: 22.98 MB / 1.062 GB, free: 71.73 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002662/2.983, allocations: 0.5997 MB / 1.063 GB, free: 71.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003038/2.986, allocations: 60.7 kB / 1.063 GB, free: 71.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005564/2.992, allocations: 406.7 kB / 1.063 GB, free: 70.84 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001641/2.994, allocations: 257.2 kB / 1.063 GB, free: 70.69 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006477/2.994, allocations: 92 kB / 1.063 GB, free: 70.6 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007703/3.002, allocations: 3.852 MB / 1.067 GB, free: 67.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.92e-07/3.002, allocations: 0 / 1.067 GB, free: 67.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01167/3.014, allocations: 2.179 MB / 1.069 GB, free: 65.05 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03867/3.052, allocations: 24.26 MB / 1.093 GB, free: 42.26 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02127/3.074, allocations: 13.74 MB / 1.106 GB, free: 28.81 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/3.074, allocations: 4 kB / 1.106 GB, free: 28.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.3082/3.382, allocations: 6.281 MB / 1.112 GB, free: 119.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007103/3.389, allocations: 0.836 MB / 1.113 GB, free: 119.4 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04883/3.438, allocations: 19.1 MB / 1.132 GB, free: 116.8 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01241/3.45, allocations: 5.412 MB / 1.137 GB, free: 115.9 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01217/3.463, allocations: 3.033 MB / 1.14 GB, free: 115.9 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007778/3.47, allocations: 3.39 MB / 1.143 GB, free: 115.9 MB / 0.4948 GB Notification: Performance of SimCode: time 9.92e-07/3.471, allocations: 0 / 1.143 GB, free: 115.9 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5745/4.045, allocations: 169.6 MB / 1.309 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001746/4.045, allocations: 190.5 kB / 1.309 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.074/12.12, allocations: 0 / 1.309 GB, free: 100.5 MB / 0.4948 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat does not exist to compare? outputFormat=mat