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.000962/0.0009619, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.547/1.547, allocations: 221.5 MB / 230.3 MB, free: 7.582 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.001001/0.001001, allocations: 89.23 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.202e-05/2.167e-05, allocations: 0 / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1239, allocations: 50.42 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4255/0.5495, allocations: 100.7 MB / 488.3 MB, free: 9.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003257/0.5498, allocations: 83.95 kB / 488.3 MB, free: 9.898 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5991/1.149, allocations: 126.2 MB / 0.6001 GB, free: 94.5 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.934e-06/1.149, allocations: 4 kB / 0.6001 GB, free: 94.49 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003404/1.149, allocations: 117.5 kB / 0.6002 GB, free: 94.49 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.02286/1.172, allocations: 6.327 MB / 0.6064 GB, free: 91.54 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.519e-05/1.172, allocations: 11.5 kB / 0.6064 GB, free: 91.54 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03337/1.206, allocations: 8.303 MB / 0.6145 GB, free: 88.56 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01994/1.226, allocations: 6.949 MB / 0.6213 GB, free: 84.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003642/1.226, allocations: 196 kB / 0.6215 GB, free: 84.07 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003484/1.23, allocations: 351.8 kB / 0.6218 GB, free: 83.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01863/1.248, allocations: 10.13 MB / 0.6317 GB, free: 73.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03315/1.281, allocations: 14.07 MB / 0.6455 GB, free: 58.37 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003028/1.282, allocations: 71.39 kB / 0.6455 GB, free: 58.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002024/1.284, allocations: 36 kB / 0.6456 GB, free: 58.26 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002004/1.286, allocations: 1.616 MB / 0.6471 GB, free: 56.64 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07703/1.363, allocations: 61.46 MB / 0.7072 GB, free: 9.902 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009138/1.372, allocations: 5.56 MB / 0.7126 GB, free: 4.086 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004783/1.377, allocations: 3.372 MB / 0.7159 GB, free: 0.7031 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3345/1.711, allocations: 13.97 MB / 0.7295 GB, free: 100.6 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.25e-05/1.712, allocations: 67.92 kB / 0.7296 GB, free: 100.5 MB / 442.7 MB Notification: Performance of pre-optimization done (n=286): time 6.842e-06/1.712, allocations: 0 / 0.7296 GB, free: 100.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=336): time 0.07612/1.788, allocations: 30.81 MB / 0.7597 GB, free: 93.82 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.302e-05/1.788, allocations: 214.6 kB / 0.7599 GB, free: 93.59 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006556/1.794, allocations: 4.275 MB / 0.7641 GB, free: 92 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007285/1.795, allocations: 25.7 kB / 0.7641 GB, free: 91.97 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002464/1.798, allocations: 4.524 MB / 0.7685 GB, free: 88.44 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001501/1.799, allocations: 1.21 MB / 0.7697 GB, free: 87.54 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000484/1.8, allocations: 3.688 kB / 0.7697 GB, free: 87.54 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003924/1.8, allocations: 0.7087 MB / 0.7704 GB, free: 87.07 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005074/1.805, allocations: 4.371 MB / 0.7747 GB, free: 85.39 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007531/1.813, allocations: 9.572 MB / 0.784 GB, free: 76.73 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01041/1.823, allocations: 6.355 MB / 0.7902 GB, free: 74.63 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003111/1.824, allocations: 51.28 kB / 0.7903 GB, free: 74.63 MB / 442.7 MB Notification: Performance of matching and sorting (n=1199) (initialization): time 0.04552/1.869, allocations: 17.65 MB / 0.8075 GB, free: 63.32 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001161/1.869, allocations: 89.64 kB / 0.8076 GB, free: 63.24 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001932/1.869, allocations: 188 kB / 0.8078 GB, free: 63.05 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0217/1.891, allocations: 5.64 MB / 0.8133 GB, free: 59.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007891/1.899, allocations: 2.137 MB / 0.8154 GB, free: 57.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02504/1.924, allocations: 21.61 MB / 0.8365 GB, free: 38.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008166/1.932, allocations: 391.2 kB / 0.8368 GB, free: 37.87 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002117/1.935, allocations: 0.5273 MB / 0.8374 GB, free: 37.34 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 843 * 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 (1108): * Single equations (assignments): 1100 * 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.001927/1.937, allocations: 0.5651 MB / 0.8379 GB, free: 36.77 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02781/1.964, allocations: 11.86 MB / 0.8495 GB, free: 24.85 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001737/1.966, allocations: 481.8 kB / 0.8499 GB, free: 24.37 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02925/1.995, allocations: 12.01 MB / 0.8617 GB, free: 12.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001061/1.996, allocations: 62.98 kB / 0.8617 GB, free: 12.24 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-05/1.996, allocations: 8 kB / 0.8617 GB, free: 12.23 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.436e-05/1.996, allocations: 15.95 kB / 0.8618 GB, free: 12.21 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3166/2.312, allocations: 22.46 MB / 0.8837 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.375e-05/2.312, allocations: 5.969 kB / 0.8837 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003349/2.316, allocations: 0.5677 MB / 0.8842 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0196/2.335, allocations: 4.633 MB / 0.8888 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008132/2.336, allocations: 9.781 kB / 0.8888 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02402/2.36, allocations: 17.33 MB / 0.9057 GB, free: 101.4 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.1e-05/2.36, allocations: 9.5 kB / 0.9057 GB, free: 101.4 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0325/2.393, allocations: 16.97 MB / 0.9223 GB, free: 95.11 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002114/2.395, allocations: 0.4958 MB / 0.9228 GB, free: 95 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00176/2.397, allocations: 12.45 kB / 0.9228 GB, free: 95 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003634/2.4, allocations: 202.9 kB / 0.923 GB, free: 95 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008238/2.401, allocations: 192.5 kB / 0.9232 GB, free: 94.97 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002981/2.402, allocations: 85.19 kB / 0.9232 GB, free: 94.96 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004616/2.406, allocations: 2.843 MB / 0.926 GB, free: 93.94 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.01e-07/2.406, allocations: 0 / 0.926 GB, free: 93.94 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008718/2.415, allocations: 1.484 MB / 0.9275 GB, free: 93.94 MB / 458.7 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 () * 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.03223/2.447, allocations: 18.68 MB / 0.9457 GB, free: 85.99 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01499/2.462, allocations: 10.01 MB / 0.9555 GB, free: 82.55 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/2.462, allocations: 0 / 0.9555 GB, free: 82.55 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005518/2.468, allocations: 3.815 MB / 0.9592 GB, free: 80.52 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003706/2.472, allocations: 462.4 kB / 0.9596 GB, free: 80.13 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03379/2.505, allocations: 15.16 MB / 0.9745 GB, free: 66.93 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005312/2.511, allocations: 4.741 MB / 0.9791 GB, free: 63.41 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.007922/2.519, allocations: 3.082 MB / 0.9821 GB, free: 61.61 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005173/2.524, allocations: 2.906 MB / 0.9849 GB, free: 58.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.172e-06/2.524, allocations: 0 / 0.9849 GB, free: 58.9 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5166/3.041, allocations: 127.7 MB / 1.11 GB, free: 105.7 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001396/3.041, allocations: 142.2 kB / 1.11 GB, free: 105.5 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.791/8.832, allocations: 4.984 kB / 1.11 GB, free: 105.5 MB / 474.7 MB (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