Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001171/0.001171, allocations: 176.9 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.792/1.792, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001113/0.001113, allocations: 86.69 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.266e-05/2.268e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1133, allocations: 47.59 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4306/0.5439, allocations: 93.84 MB / 457 MB, free: 1.77 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002745/0.5443, allocations: 89.31 kB / 457.1 MB, free: 1.723 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5908/1.135, allocations: 120.9 MB / 0.5644 GB, free: 87.94 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.524e-06/1.135, allocations: 2.812 kB / 0.5644 GB, free: 87.94 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004763/1.136, allocations: 123.6 kB / 0.5645 GB, free: 87.93 MB / 410.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.02484/1.16, allocations: 6.521 MB / 0.5709 GB, free: 85.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/1.16, allocations: 10.62 kB / 0.5709 GB, free: 85.52 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03594/1.196, allocations: 9.424 MB / 0.5801 GB, free: 85.08 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02209/1.219, allocations: 8.583 MB / 0.5885 GB, free: 84.13 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003489/1.219, allocations: 184.1 kB / 0.5887 GB, free: 84.13 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003439/1.222, allocations: 351.6 kB / 0.589 GB, free: 84.12 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01866/1.241, allocations: 8.863 MB / 0.5977 GB, free: 81.37 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02564/1.267, allocations: 13.03 MB / 0.6104 GB, free: 70.59 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003714/1.267, allocations: 82.55 kB / 0.6105 GB, free: 70.51 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001958/1.269, allocations: 36 kB / 0.6105 GB, free: 70.47 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00186/1.271, allocations: 1.443 MB / 0.6119 GB, free: 69.28 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06604/1.337, allocations: 62.97 MB / 0.6734 GB, free: 5.289 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008156/1.345, allocations: 7.011 MB / 0.6803 GB, free: 14.15 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006533/1.352, allocations: 5.051 MB / 0.6852 GB, free: 9.09 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009034/1.353, allocations: 0.5793 MB / 0.6858 GB, free: 8.438 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.406e-05/1.353, allocations: 72.75 kB / 0.6858 GB, free: 8.355 MB / 426.7 MB Notification: Performance of pre-optimization done (n=346): time 7.314e-06/1.353, allocations: 0 / 0.6858 GB, free: 8.355 MB / 426.7 MB Notification: Performance of matching and sorting (n=610): time 0.4847/1.838, allocations: 75.3 MB / 0.7594 GB, free: 83.25 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/1.838, allocations: 275.1 kB / 0.7596 GB, free: 82.99 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006516/1.844, allocations: 4.003 MB / 0.7635 GB, free: 81.56 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002025/1.846, allocations: 25.7 kB / 0.7636 GB, free: 81.53 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002378/1.849, allocations: 4.068 MB / 0.7675 GB, free: 78.58 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002989/1.852, allocations: 2.052 MB / 0.7695 GB, free: 76.94 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001128/1.853, allocations: 3.625 kB / 0.7695 GB, free: 76.94 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004442/1.853, allocations: 0.7193 MB / 0.7702 GB, free: 76.33 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01085/1.864, allocations: 8.435 MB / 0.7785 GB, free: 68.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01347/1.878, allocations: 12.62 MB / 0.7908 GB, free: 55.21 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01306/1.891, allocations: 10.41 MB / 0.801 GB, free: 46.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001364/1.891, allocations: 40 kB / 0.801 GB, free: 46.39 MB / 426.7 MB Notification: Performance of matching and sorting (n=1266) (initialization): time 0.08797/1.979, allocations: 38.99 MB / 0.8391 GB, free: 8.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001034/1.979, allocations: 68 kB / 0.8391 GB, free: 8.773 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001506/1.979, allocations: 140 kB / 0.8393 GB, free: 8.637 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3564/2.336, allocations: 21.34 MB / 0.8601 GB, free: 94.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005813/2.342, allocations: 1.487 MB / 0.8616 GB, free: 94.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1855/2.527, allocations: 137 MB / 0.9954 GB, free: 16.06 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01279/2.54, allocations: 0.5478 MB / 0.9959 GB, free: 15.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003215/2.543, allocations: 0.5433 MB / 0.9965 GB, free: 14.98 MB / 442.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.004518/2.548, allocations: 493.8 kB / 0.9969 GB, free: 14.73 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3911/2.939, allocations: 34.62 MB / 1.031 GB, free: 92.92 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004341/2.943, allocations: 0.5468 MB / 1.031 GB, free: 92.92 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08085/3.024, allocations: 35.47 MB / 1.066 GB, free: 89.43 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001394/3.024, allocations: 68.48 kB / 1.066 GB, free: 89.43 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001568/3.025, allocations: 66.22 kB / 1.066 GB, free: 89.43 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001707/3.025, allocations: 26.62 kB / 1.066 GB, free: 89.43 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1133/3.138, allocations: 55.75 MB / 1.121 GB, free: 50.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.606e-05/3.138, allocations: 0 / 1.121 GB, free: 50.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001668/3.14, allocations: 279.6 kB / 1.121 GB, free: 50.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05726/3.197, allocations: 20.57 MB / 1.141 GB, free: 29.93 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002665/3.2, allocations: 7.984 kB / 1.141 GB, free: 29.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4612/3.661, allocations: 124.7 MB / 1.263 GB, free: 77.38 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.248e-06/3.661, allocations: 1.312 kB / 1.263 GB, free: 77.38 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08555/3.747, allocations: 48.01 MB / 1.309 GB, free: 37.25 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006244/3.753, allocations: 2.351 MB / 1.312 GB, free: 34.89 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002466/3.756, allocations: 0 / 1.312 GB, free: 34.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007223/3.763, allocations: 417.7 kB / 1.312 GB, free: 34.48 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003113/3.766, allocations: 0.5029 MB / 1.313 GB, free: 33.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008872/3.767, allocations: 148 kB / 1.313 GB, free: 33.83 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003922/3.771, allocations: 2.74 MB / 1.315 GB, free: 31.11 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.61e-07/3.771, allocations: 0 / 1.315 GB, free: 31.11 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01417/3.785, allocations: 3.061 MB / 1.318 GB, free: 28.05 MB / 458.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.4173/4.202, allocations: 48.56 MB / 1.366 GB, free: 100.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03932/4.242, allocations: 23.58 MB / 1.389 GB, free: 95.95 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/4.242, allocations: 3.281 kB / 1.389 GB, free: 95.95 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02533/4.267, allocations: 13.23 MB / 1.402 GB, free: 90.25 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005697/4.273, allocations: 0.5428 MB / 1.402 GB, free: 90.04 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05406/4.327, allocations: 22.73 MB / 1.425 GB, free: 78.14 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009598/4.337, allocations: 5.316 MB / 1.43 GB, free: 74.23 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.006716/4.343, allocations: 2.142 MB / 1.432 GB, free: 72.95 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005781/4.349, allocations: 3.059 MB / 1.435 GB, free: 70.11 MB / 458.7 MB Notification: Performance of SimCode: time 1.243e-06/4.349, allocations: 0 / 1.435 GB, free: 70.11 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.085/5.434, allocations: 278 MB / 1.706 GB, free: 90.09 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00019/5.435, allocations: 140.5 kB / 1.706 GB, free: 89.9 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.046/14.48, allocations: 0 / 1.706 GB, free: 89.9 MB / 474.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat