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.001122/0.001121, allocations: 180.2 kB / 16.39 MB, free: 5.766 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.332/1.332, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009501/0.0009501, allocations: 94.2 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002787/0.0002787, allocations: 7.984 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2602, allocations: 50.4 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1238/0.3841, allocations: 101.4 MB / 0.4912 GB, free: 10.97 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002984/0.3844, allocations: 95.94 kB / 0.4913 GB, free: 10.88 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5336/0.918, allocations: 128.5 MB / 0.6168 GB, free: 10.71 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.9181, allocations: 4 kB / 0.6168 GB, free: 10.7 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003853/0.9185, allocations: 116 kB / 0.6169 GB, free: 10.59 MB / 394.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.02341/0.9419, allocations: 6.766 MB / 0.6235 GB, free: 3.75 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.942, allocations: 16.03 kB / 0.6235 GB, free: 3.734 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005343/0.9474, allocations: 1.308 MB / 0.6248 GB, free: 2.414 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03329/0.9807, allocations: 8.306 MB / 0.6329 GB, free: 10.09 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01934/1, allocations: 6.994 MB / 0.6398 GB, free: 3.031 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004502/1.001, allocations: 455.8 kB / 0.6402 GB, free: 2.586 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003076/1.004, allocations: 0.5857 MB / 0.6408 GB, free: 2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03322/1.037, allocations: 15.72 MB / 0.6561 GB, free: 1.109 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002621/1.037, allocations: 83.23 kB / 0.6562 GB, free: 1.027 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001652/1.039, allocations: 287.8 kB / 0.6565 GB, free: 0.7461 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2358/1.275, allocations: 1.615 MB / 0.658 GB, free: 69.63 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02866/1.303, allocations: 13.97 MB / 0.6717 GB, free: 69.58 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07313/1.377, allocations: 64.05 MB / 0.7342 GB, free: 32.12 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01412/1.391, allocations: 6.435 MB / 0.7405 GB, free: 29.31 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02533/1.416, allocations: 14.29 MB / 0.7545 GB, free: 22.05 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.732e-05/1.416, allocations: 60.25 kB / 0.7545 GB, free: 21.99 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 6.141e-06/1.416, allocations: 0 / 0.7545 GB, free: 21.99 MB / 426.7 MB Notification: Performance of matching and sorting (n=336): time 0.138/1.554, allocations: 42.08 MB / 0.7956 GB, free: 9.625 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/1.554, allocations: 213.8 kB / 0.7958 GB, free: 9.375 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008646/1.563, allocations: 4.821 MB / 0.8005 GB, free: 5.348 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009167/1.564, allocations: 69.7 kB / 0.8006 GB, free: 5.273 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003815/1.568, allocations: 4.435 MB / 0.8049 GB, free: 0.8555 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002255/1.57, allocations: 1.246 MB / 0.8062 GB, free: 15.62 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008302/1.571, allocations: 172 kB / 0.8063 GB, free: 15.46 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000615/1.572, allocations: 0.6857 MB / 0.807 GB, free: 14.77 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007924/1.58, allocations: 4.538 MB / 0.8114 GB, free: 10.22 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01232/1.592, allocations: 9.513 MB / 0.8207 GB, free: 14.32 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01053/1.603, allocations: 6.422 MB / 0.827 GB, free: 7.879 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000156/1.603, allocations: 52 kB / 0.827 GB, free: 7.828 MB / 474.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.3024/1.905, allocations: 18.67 MB / 0.8453 GB, free: 103.6 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001532/1.905, allocations: 82.86 kB / 0.8453 GB, free: 103.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002223/1.906, allocations: 177.2 kB / 0.8455 GB, free: 103.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0203/1.926, allocations: 5.634 MB / 0.851 GB, free: 103.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00794/1.934, allocations: 2.053 MB / 0.853 GB, free: 103.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02844/1.962, allocations: 24.29 MB / 0.8767 GB, free: 100.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007791/1.97, allocations: 0.5407 MB / 0.8773 GB, free: 100.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001805/1.972, allocations: 0.5108 MB / 0.8778 GB, free: 100.5 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 () * Number of clocked 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.006002/1.978, allocations: 3.088 MB / 0.8808 GB, free: 99.43 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001254/1.979, allocations: 0.4977 MB / 0.8813 GB, free: 99.42 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02742/2.007, allocations: 12.34 MB / 0.8933 GB, free: 95.49 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001078/2.007, allocations: 57.91 kB / 0.8934 GB, free: 95.49 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.316e-05/2.007, allocations: 9.875 kB / 0.8934 GB, free: 95.49 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.129e-05/2.007, allocations: 14.39 kB / 0.8934 GB, free: 95.49 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04839/2.055, allocations: 23.94 MB / 0.9168 GB, free: 86.12 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.908e-05/2.056, allocations: 10.39 kB / 0.9168 GB, free: 86.12 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003027/2.059, allocations: 0.5618 MB / 0.9173 GB, free: 86.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01748/2.076, allocations: 4.652 MB / 0.9219 GB, free: 83.93 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008466/2.077, allocations: 59.67 kB / 0.9219 GB, free: 83.87 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02145/2.098, allocations: 19.58 MB / 0.941 GB, free: 66.78 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.867e-06/2.098, allocations: 11.56 kB / 0.9411 GB, free: 66.77 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.031/2.129, allocations: 17.38 MB / 0.958 GB, free: 49.75 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001971/2.131, allocations: 0.5298 MB / 0.9585 GB, free: 49.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001359/2.133, allocations: 58.55 kB / 0.9586 GB, free: 49.15 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003095/2.136, allocations: 250.5 kB / 0.9588 GB, free: 48.91 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00066/2.137, allocations: 188.8 kB / 0.959 GB, free: 48.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000258/2.137, allocations: 86.33 kB / 0.9591 GB, free: 48.65 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005597/2.143, allocations: 3.354 MB / 0.9624 GB, free: 45.32 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.62e-07/2.143, allocations: 0 / 0.9624 GB, free: 45.32 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009177/2.152, allocations: 1.71 MB / 0.964 GB, free: 43.62 MB / 474.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 () * Number of clocked 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.03045/2.182, allocations: 19.08 MB / 0.9827 GB, free: 24.38 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01525/2.198, allocations: 10.45 MB / 0.9929 GB, free: 14.47 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/2.198, allocations: 4 kB / 0.9929 GB, free: 14.46 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005156/2.203, allocations: 3.952 MB / 0.9967 GB, free: 10.53 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003561/2.206, allocations: 0.5751 MB / 0.9973 GB, free: 9.98 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3283/2.535, allocations: 150.3 MB / 1.144 GB, free: 19.57 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00831/2.543, allocations: 4.754 MB / 1.149 GB, free: 18.7 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008373/2.551, allocations: 2.981 MB / 1.152 GB, free: 18.49 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005226/2.557, allocations: 2.924 MB / 1.154 GB, free: 18.48 MB / 0.5105 GB Notification: Performance of SimCode: time 1.132e-06/2.557, allocations: 0 / 1.154 GB, free: 18.48 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4419/2.999, allocations: 133 MB / 1.284 GB, free: 138.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000166/2.999, allocations: 211.2 kB / 1.285 GB, free: 138.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.973/8.972, allocations: 0 / 1.285 GB, free: 138.4 MB / 0.5105 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