Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.002203/0.002203, allocations: 178.4 kB / 8.698 MB, free: 388 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.837/1.837, allocations: 205.3 MB / 214.4 MB, free: 1.73 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.0009028/0.0009027, allocations: 78.72 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.009e-05/2.011e-05, allocations: 0 / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1162, allocations: 47.58 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4313/0.5475, allocations: 99.26 MB / 462.4 MB, free: 12.39 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002795/0.5479, allocations: 91 kB / 462.5 MB, free: 12.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.586/1.134, allocations: 124.5 MB / 0.5733 GB, free: 88.45 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.194e-06/1.134, allocations: 0 / 0.5733 GB, free: 88.45 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003572/1.134, allocations: 116.1 kB / 0.5734 GB, free: 88.45 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02789/1.162, allocations: 6.332 MB / 0.5796 GB, free: 86.01 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.315e-05/1.162, allocations: 7.125 kB / 0.5796 GB, free: 86.01 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03494/1.197, allocations: 8.318 MB / 0.5877 GB, free: 85.56 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02343/1.221, allocations: 7.271 MB / 0.5948 GB, free: 84.23 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004732/1.221, allocations: 195.6 kB / 0.595 GB, free: 84.22 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004081/1.225, allocations: 356.2 kB / 0.5953 GB, free: 84.21 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0221/1.247, allocations: 10.12 MB / 0.6052 GB, free: 78.16 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03886/1.286, allocations: 14.07 MB / 0.619 GB, free: 63.02 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000623/1.287, allocations: 71.41 kB / 0.619 GB, free: 62.95 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00402/1.291, allocations: 36 kB / 0.6191 GB, free: 62.91 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002552/1.294, allocations: 1.621 MB / 0.6206 GB, free: 61.3 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08427/1.378, allocations: 61.51 MB / 0.6807 GB, free: 14.52 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008037/1.386, allocations: 5.562 MB / 0.6861 GB, free: 8.719 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005331/1.392, allocations: 3.379 MB / 0.6894 GB, free: 5.332 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3209/1.712, allocations: 14 MB / 0.7031 GB, free: 96.71 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.142e-05/1.713, allocations: 59.11 kB / 0.7032 GB, free: 96.68 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 6.181e-06/1.713, allocations: 0 / 0.7032 GB, free: 96.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=336): time 0.07195/1.785, allocations: 30.92 MB / 0.7334 GB, free: 91.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/1.785, allocations: 212.9 kB / 0.7336 GB, free: 91.33 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006841/1.792, allocations: 4.31 MB / 0.7378 GB, free: 89.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008541/1.792, allocations: 29.05 kB / 0.7378 GB, free: 89.77 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00262/1.795, allocations: 4.528 MB / 0.7422 GB, free: 86.39 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001782/1.797, allocations: 1.21 MB / 0.7434 GB, free: 85.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004638/1.797, allocations: 0 / 0.7434 GB, free: 85.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004582/1.798, allocations: 0.7031 MB / 0.7441 GB, free: 85.02 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005094/1.803, allocations: 4.372 MB / 0.7484 GB, free: 83.35 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007258/1.81, allocations: 9.57 MB / 0.7577 GB, free: 74.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008478/1.819, allocations: 6.351 MB / 0.7639 GB, free: 72.59 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001618/1.819, allocations: 52.84 kB / 0.764 GB, free: 72.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=1199) (initialization): time 0.03861/1.857, allocations: 17.65 MB / 0.7812 GB, free: 62.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001108/1.858, allocations: 88.95 kB / 0.7813 GB, free: 62.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001699/1.858, allocations: 184 kB / 0.7815 GB, free: 62.42 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01992/1.878, allocations: 5.629 MB / 0.787 GB, free: 59.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007666/1.885, allocations: 2.148 MB / 0.7891 GB, free: 57.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02362/1.909, allocations: 21.62 MB / 0.8102 GB, free: 38.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01013/1.919, allocations: 392.9 kB / 0.8105 GB, free: 37.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002387/1.922, allocations: 0.5352 MB / 0.8111 GB, free: 37.46 MB / 426.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.002698/1.924, allocations: 0.5691 MB / 0.8116 GB, free: 36.89 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02877/1.953, allocations: 11.85 MB / 0.8232 GB, free: 25.68 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001983/1.955, allocations: 477.8 kB / 0.8237 GB, free: 25.2 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02861/1.984, allocations: 12.02 MB / 0.8354 GB, free: 13.12 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001119/1.984, allocations: 57 kB / 0.8354 GB, free: 13.06 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.91e-05/1.984, allocations: 12 kB / 0.8355 GB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-05/1.984, allocations: 11.95 kB / 0.8355 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4024/2.387, allocations: 22.47 MB / 0.8574 GB, free: 99.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-05/2.387, allocations: 9.281 kB / 0.8574 GB, free: 99.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00341/2.39, allocations: 0.5666 MB / 0.858 GB, free: 99.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01867/2.409, allocations: 4.633 MB / 0.8625 GB, free: 99.18 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000929/2.41, allocations: 13.75 kB / 0.8625 GB, free: 99.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0212/2.431, allocations: 17.34 MB / 0.8794 GB, free: 96.56 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/2.431, allocations: 6.609 kB / 0.8794 GB, free: 96.56 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03155/2.463, allocations: 16.97 MB / 0.896 GB, free: 90.13 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003478/2.466, allocations: 1.177 MB / 0.8972 GB, free: 89.77 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001286/2.467, allocations: 6.781 kB / 0.8972 GB, free: 89.77 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003451/2.471, allocations: 212 kB / 0.8974 GB, free: 89.76 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006899/2.472, allocations: 190 kB / 0.8976 GB, free: 89.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002828/2.472, allocations: 86.95 kB / 0.8976 GB, free: 89.71 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005328/2.477, allocations: 2.859 MB / 0.9004 GB, free: 88.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.91e-07/2.477, allocations: 0 / 0.9004 GB, free: 88.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01258/2.49, allocations: 1.496 MB / 0.9019 GB, free: 88.69 MB / 442.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.03307/2.523, allocations: 18.68 MB / 0.9201 GB, free: 80.75 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01619/2.539, allocations: 10 MB / 0.9299 GB, free: 77.17 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/2.539, allocations: 0 / 0.9299 GB, free: 77.17 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004887/2.544, allocations: 3.816 MB / 0.9336 GB, free: 73.69 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003777/2.548, allocations: 463 kB / 0.9341 GB, free: 73.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03465/2.583, allocations: 15.2 MB / 0.9489 GB, free: 60.07 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0056/2.588, allocations: 4.752 MB / 0.9536 GB, free: 56.55 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.007702/2.596, allocations: 3.087 MB / 0.9566 GB, free: 54.74 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004823/2.601, allocations: 2.912 MB / 0.9594 GB, free: 52.03 MB / 442.7 MB Notification: Performance of SimCode: time 8.92e-07/2.601, allocations: 1.75 kB / 0.9594 GB, free: 52.03 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4775/3.078, allocations: 127.9 MB / 1.084 GB, free: 74.97 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/3.079, allocations: 140.9 kB / 1.084 GB, free: 74.78 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.088/9.167, allocations: 3.938 kB / 1.084 GB, free: 74.77 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat