Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001085/0.001085, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.58/1.58, allocations: 225.6 MB / 234.8 MB, free: 3.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001229/0.001228, allocations: 95.09 kB / 286.7 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.745e-05/2.728e-05, allocations: 4 kB / 343.8 MB, free: 8.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1175, allocations: 51.48 MB / 395.3 MB, free: 4.648 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3944/0.512, allocations: 95.78 MB / 491 MB, free: 13.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002247/0.5122, allocations: 86.33 kB / 491.1 MB, free: 13.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5712/1.083, allocations: 126.1 MB / 0.6028 GB, free: 73.42 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.665e-06/1.084, allocations: 0 / 0.6028 GB, free: 73.42 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004624/1.084, allocations: 126.2 kB / 0.6029 GB, free: 73.42 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02278/1.107, allocations: 6.626 MB / 0.6094 GB, free: 71.04 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/1.107, allocations: 7.844 kB / 0.6094 GB, free: 71.04 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0547/1.162, allocations: 9.564 MB / 0.6187 GB, free: 70.62 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02756/1.189, allocations: 7.327 MB / 0.6259 GB, free: 69.74 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005369/1.19, allocations: 188.3 kB / 0.6261 GB, free: 69.74 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003933/1.194, allocations: 344.5 kB / 0.6264 GB, free: 69.73 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02452/1.218, allocations: 8.871 MB / 0.635 GB, free: 69.7 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03552/1.254, allocations: 13.02 MB / 0.6478 GB, free: 63.68 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007343/1.255, allocations: 87.17 kB / 0.6478 GB, free: 63.66 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003517/1.258, allocations: 35.97 kB / 0.6479 GB, free: 63.66 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002885/1.261, allocations: 1.443 MB / 0.6493 GB, free: 63.42 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08757/1.349, allocations: 62.89 MB / 0.7107 GB, free: 19.02 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01054/1.359, allocations: 7.008 MB / 0.7175 GB, free: 13.38 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007181/1.367, allocations: 5.048 MB / 0.7225 GB, free: 8.738 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009302/1.367, allocations: 0.5788 MB / 0.723 GB, free: 8.125 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.906e-05/1.368, allocations: 72.75 kB / 0.7231 GB, free: 8.043 MB / 442.7 MB Notification: Performance of pre-optimization done (n=346): time 8.957e-06/1.368, allocations: 1.875 kB / 0.7231 GB, free: 8.043 MB / 442.7 MB Notification: Performance of matching and sorting (n=610): time 0.5131/1.881, allocations: 75.13 MB / 0.7965 GB, free: 79.97 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/1.881, allocations: 267 kB / 0.7967 GB, free: 79.71 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009815/1.891, allocations: 3.961 MB / 0.8006 GB, free: 79.16 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002417/1.893, allocations: 25.7 kB / 0.8006 GB, free: 79.12 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003773/1.897, allocations: 4.048 MB / 0.8046 GB, free: 76.17 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003626/1.901, allocations: 2.051 MB / 0.8066 GB, free: 74.59 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002529/1.903, allocations: 0 / 0.8066 GB, free: 74.59 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0009522/1.904, allocations: 0.7226 MB / 0.8073 GB, free: 74.11 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01124/1.915, allocations: 8.434 MB / 0.8155 GB, free: 70.82 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01555/1.931, allocations: 12.63 MB / 0.8279 GB, free: 62.05 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01518/1.946, allocations: 10.4 MB / 0.838 GB, free: 58.25 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002157/1.946, allocations: 39.59 kB / 0.8381 GB, free: 58.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=1266) (initialization): time 0.09443/2.041, allocations: 39 MB / 0.8761 GB, free: 39.88 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005593/2.041, allocations: 65.88 kB / 0.8762 GB, free: 39.82 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000655/2.042, allocations: 144 kB / 0.8763 GB, free: 39.68 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06062/2.103, allocations: 21.34 MB / 0.8972 GB, free: 19.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004973/2.108, allocations: 1.497 MB / 0.8986 GB, free: 17.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5271/2.635, allocations: 137 MB / 1.032 GB, free: 32.44 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01238/2.647, allocations: 0.5495 MB / 1.033 GB, free: 32.24 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003543/2.651, allocations: 0.5432 MB / 1.034 GB, free: 31.76 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: b2.frame_b.R.T[3,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 652 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (805): * Single equations (assignments): 798 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(17,45.3%) 115,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.005053/2.656, allocations: 491.5 kB / 1.034 GB, free: 31.52 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.08055/2.737, allocations: 34.62 MB / 1.068 GB, free: 5.664 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003173/2.74, allocations: 0.5467 MB / 1.068 GB, free: 5.113 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4276/3.167, allocations: 35.46 MB / 1.103 GB, free: 80.05 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001472/3.168, allocations: 61.94 kB / 1.103 GB, free: 80.05 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002524/3.168, allocations: 61.84 kB / 1.103 GB, free: 80.05 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002701/3.168, allocations: 33.48 kB / 1.103 GB, free: 80.05 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1293/3.298, allocations: 55.72 MB / 1.158 GB, free: 71.34 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.701e-05/3.298, allocations: 0 / 1.158 GB, free: 71.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0017/3.299, allocations: 283.2 kB / 1.158 GB, free: 71.32 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05897/3.358, allocations: 20.57 MB / 1.178 GB, free: 67.18 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002623/3.361, allocations: 7.812 kB / 1.178 GB, free: 67.18 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5701/3.931, allocations: 124.6 MB / 1.3 GB, free: 78.13 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.105e-05/3.931, allocations: 1 kB / 1.3 GB, free: 78.13 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1115/4.043, allocations: 48.01 MB / 1.347 GB, free: 62.25 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002227/4.045, allocations: 0.5539 MB / 1.347 GB, free: 61.85 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003755/4.049, allocations: 7.234 kB / 1.347 GB, free: 61.84 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009249/4.058, allocations: 417.5 kB / 1.347 GB, free: 61.84 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004881/4.063, allocations: 0.5071 MB / 1.348 GB, free: 61.77 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001729/4.065, allocations: 139.4 kB / 1.348 GB, free: 61.73 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006078/4.071, allocations: 2.707 MB / 1.351 GB, free: 60.75 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.5e-07/4.071, allocations: 1.312 kB / 1.351 GB, free: 60.75 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01892/4.09, allocations: 3.057 MB / 1.354 GB, free: 60.75 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (154): * Single equations (assignments): 147 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.09915/4.189, allocations: 48.57 MB / 1.401 GB, free: 26.83 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03919/4.228, allocations: 23.57 MB / 1.424 GB, free: 4.684 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/4.228, allocations: 0 / 1.424 GB, free: 4.684 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.3566/4.585, allocations: 13.25 MB / 1.437 GB, free: 92.95 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008391/4.593, allocations: 0.54 MB / 1.438 GB, free: 92.93 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.076/4.669, allocations: 22.68 MB / 1.46 GB, free: 90.44 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01543/4.685, allocations: 5.301 MB / 1.465 GB, free: 89.57 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01045/4.695, allocations: 2.141 MB / 1.467 GB, free: 89.51 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00769/4.703, allocations: 3.04 MB / 1.47 GB, free: 89.5 MB / 490.7 MB Notification: Performance of SimCode: time 1.132e-06/4.703, allocations: 0 / 1.47 GB, free: 89.5 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6797/5.383, allocations: 277.7 MB / 1.741 GB, free: 27.97 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000146/5.383, allocations: 144.3 kB / 1.741 GB, free: 27.78 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.768/14.15, allocations: 0 / 1.741 GB, free: 27.78 MB / 490.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat