Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",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.001134/0.001134, allocations: 180.4 kB / 16.38 MB, free: 5.762 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.302/1.302, allocations: 223.2 MB / 240.3 MB, free: 11.9 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.0008767/0.0008766, allocations: 96.59 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000258/0.000258, allocations: 8 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2318, allocations: 50.4 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1119/0.3437, allocations: 93.5 MB / 495.1 MB, free: 2.949 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002486/0.344, allocations: 87.95 kB / 495.2 MB, free: 2.863 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.366/0.7101, allocations: 58.87 MB / 0.541 GB, free: 72.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.915e-06/0.7101, allocations: 0 / 0.541 GB, free: 72.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001036/0.7102, allocations: 47.94 kB / 0.5411 GB, free: 72.34 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.01116/0.7214, allocations: 3.059 MB / 0.5441 GB, free: 69.22 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/0.7215, allocations: 16.02 kB / 0.5441 GB, free: 69.21 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001696/0.7232, allocations: 0.5065 MB / 0.5446 GB, free: 68.69 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008757/0.7319, allocations: 2.052 MB / 0.5466 GB, free: 66.63 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008775/0.7408, allocations: 3.509 MB / 0.55 GB, free: 63.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002064/0.741, allocations: 189 kB / 0.5502 GB, free: 62.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001146/0.7422, allocations: 255.8 kB / 0.5504 GB, free: 62.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01201/0.7542, allocations: 7.035 MB / 0.5573 GB, free: 54.85 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001192/0.7544, allocations: 43.53 kB / 0.5574 GB, free: 54.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004893/0.7549, allocations: 127.9 kB / 0.5575 GB, free: 54.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009171/0.7558, allocations: 0.7151 MB / 0.5582 GB, free: 53.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009862/0.7657, allocations: 6.098 MB / 0.5641 GB, free: 47.86 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02897/0.7947, allocations: 32.68 MB / 0.5961 GB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006008/0.8008, allocations: 2.67 MB / 0.5987 GB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004927/0.8057, allocations: 3.889 MB / 0.6025 GB, free: 7.125 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.8058, allocations: 51.05 kB / 0.6025 GB, free: 7.066 MB / 378.7 MB Notification: Performance of pre-optimization done (n=112): time 4.258e-06/0.8058, allocations: 0 / 0.6025 GB, free: 7.066 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.02398/0.8298, allocations: 10.53 MB / 0.6128 GB, free: 12.33 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001484/0.8313, allocations: 1.592 MB / 0.6143 GB, free: 10.56 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004449/0.8358, allocations: 2.46 MB / 0.6167 GB, free: 8.086 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002147/0.836, allocations: 41.83 kB / 0.6168 GB, free: 8.039 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001574/0.8376, allocations: 2.083 MB / 0.6188 GB, free: 5.922 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005845/0.8382, allocations: 0.5054 MB / 0.6193 GB, free: 5.41 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001888/0.8384, allocations: 88 kB / 0.6194 GB, free: 5.324 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003136/0.8387, allocations: 0.4961 MB / 0.6199 GB, free: 4.82 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00254/0.8413, allocations: 1.625 MB / 0.6215 GB, free: 3.188 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004642/0.8459, allocations: 4.399 MB / 0.6258 GB, free: 13.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003867/0.8498, allocations: 2.631 MB / 0.6283 GB, free: 10.76 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.241e-05/0.8499, allocations: 28 kB / 0.6284 GB, free: 10.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=589) (initialization): time 0.01384/0.8637, allocations: 7.03 MB / 0.6352 GB, free: 3.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.586e-05/0.8638, allocations: 52.98 kB / 0.6353 GB, free: 3.629 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005898/0.8697, allocations: 2.528 MB / 0.6377 GB, free: 1.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005139/0.8749, allocations: 1.493 MB / 0.6392 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003307/0.8782, allocations: 1.018 MB / 0.6402 GB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009902/0.8881, allocations: 7.435 MB / 0.6475 GB, free: 6.855 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003779/0.8919, allocations: 371.5 kB / 0.6478 GB, free: 6.492 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004943/0.8924, allocations: 280 kB / 0.6481 GB, free: 6.219 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 450 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (541): * Single equations (assignments): 533 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002073/0.8945, allocations: 1.418 MB / 0.6495 GB, free: 4.789 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003644/0.8949, allocations: 229 kB / 0.6497 GB, free: 4.562 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006426/0.9013, allocations: 2.842 MB / 0.6525 GB, free: 1.695 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005649/0.907, allocations: 2.509 MB / 0.6549 GB, free: 15.17 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.465e-05/0.907, allocations: 8 kB / 0.6549 GB, free: 15.16 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.907, allocations: 11.86 kB / 0.6549 GB, free: 15.15 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01318/0.9202, allocations: 6.861 MB / 0.6616 GB, free: 8.199 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.668e-06/0.9203, allocations: 4 kB / 0.6616 GB, free: 8.195 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007941/0.9211, allocations: 171.7 kB / 0.6618 GB, free: 8.027 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004725/0.9258, allocations: 1.438 MB / 0.6632 GB, free: 6.578 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001377/0.926, allocations: 35.97 kB / 0.6632 GB, free: 6.543 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2193/1.145, allocations: 7.543 MB / 0.6706 GB, free: 125.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008967/1.146, allocations: 1.465 MB / 0.672 GB, free: 124.1 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007943/1.154, allocations: 4.96 MB / 0.6769 GB, free: 123.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008018/1.155, allocations: 296.9 kB / 0.6772 GB, free: 123.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003264/1.155, allocations: 23.72 kB / 0.6772 GB, free: 123.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001276/1.157, allocations: 131.3 kB / 0.6773 GB, free: 123.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000242/1.157, allocations: 83.08 kB / 0.6774 GB, free: 123.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.989e-05/1.157, allocations: 35.22 kB / 0.6774 GB, free: 123.4 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0029/1.16, allocations: 1.712 MB / 0.6791 GB, free: 123.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.16, allocations: 3.594 kB / 0.6791 GB, free: 123.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004135/1.164, allocations: 0.7761 MB / 0.6798 GB, free: 123.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008522/1.173, allocations: 5.966 MB / 0.6857 GB, free: 121.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006934/1.18, allocations: 4.323 MB / 0.6899 GB, free: 121.4 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/1.18, allocations: 0 / 0.6899 GB, free: 121.4 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002776/1.182, allocations: 1.714 MB / 0.6916 GB, free: 121.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001762/1.184, allocations: 245.9 kB / 0.6918 GB, free: 121 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05615/1.24, allocations: 91.36 MB / 0.781 GB, free: 38.25 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002261/1.243, allocations: 2.355 MB / 0.7833 GB, free: 36.38 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003273/1.246, allocations: 1.405 MB / 0.7847 GB, free: 35.51 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001376/1.247, allocations: 1.115 MB / 0.7858 GB, free: 34.48 MB / 442.7 MB Notification: Performance of SimCode: time 1.092e-06/1.247, allocations: 0 / 0.7858 GB, free: 34.48 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09343/1.341, allocations: 54.84 MB / 0.8393 GB, free: 0.6992 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002326/1.341, allocations: 228.4 kB / 0.8396 GB, free: 468 kB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.776/5.117, allocations: 3.375 kB / 0.8396 GB, free: 468 kB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat does not exist to compare? outputFormat=mat