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.001691/0.001691, allocations: 175.5 kB / 13.63 MB, free: 1.684 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: 221.3 MB / 235.5 MB, free: 2.906 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.0008611/0.0008611, allocations: 98.16 kB / 286.5 MB, free: 176 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.44e-05/3.442e-05, allocations: 4 kB / 343.9 MB, free: 4.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1094, allocations: 50.41 MB / 394.3 MB, free: 1.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3825/0.4919, allocations: 93.43 MB / 487.8 MB, free: 10.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000305/0.4923, allocations: 91.94 kB / 487.9 MB, free: 9.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.157/0.6493, allocations: 58.88 MB / 0.5339 GB, free: 14.62 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.6493, allocations: 3.938 kB / 0.5339 GB, free: 14.62 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.994e-05/0.6494, allocations: 51.98 kB / 0.534 GB, free: 14.57 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.01166/0.6611, allocations: 2.951 MB / 0.5369 GB, free: 11.56 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.345e-05/0.6612, allocations: 12.03 kB / 0.5369 GB, free: 11.55 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001672/0.6628, allocations: 0.4948 MB / 0.5374 GB, free: 11.05 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009367/0.6722, allocations: 2.059 MB / 0.5394 GB, free: 8.98 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01001/0.6823, allocations: 3.482 MB / 0.5428 GB, free: 5.449 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002002/0.6825, allocations: 189 kB / 0.543 GB, free: 5.262 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001158/0.6837, allocations: 259.8 kB / 0.5432 GB, free: 5.008 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3003/0.984, allocations: 6.94 MB / 0.55 GB, free: 101.5 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001356/0.9842, allocations: 43.95 kB / 0.55 GB, free: 101.5 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004687/0.9847, allocations: 127 kB / 0.5501 GB, free: 101.5 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001335/0.986, allocations: 0.7204 MB / 0.5508 GB, free: 101.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01481/1.001, allocations: 5.94 MB / 0.5566 GB, free: 101.5 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03896/1.04, allocations: 32.69 MB / 0.5886 GB, free: 79.81 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006805/1.047, allocations: 2.651 MB / 0.5912 GB, free: 78.66 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001249/1.048, allocations: 1.017 MB / 0.5922 GB, free: 78.23 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005841/1.054, allocations: 3.898 MB / 0.596 GB, free: 75.75 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/1.054, allocations: 49.47 kB / 0.596 GB, free: 75.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=112): time 3.978e-06/1.054, allocations: 0 / 0.596 GB, free: 75.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=125): time 0.02434/1.078, allocations: 8.874 MB / 0.6047 GB, free: 72.46 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001089/1.079, allocations: 1.59 MB / 0.6062 GB, free: 70.87 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005049/1.084, allocations: 2.408 MB / 0.6086 GB, free: 69.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004059/1.085, allocations: 43.7 kB / 0.6086 GB, free: 69.95 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001663/1.087, allocations: 2.078 MB / 0.6106 GB, free: 68.37 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008163/1.087, allocations: 0.5105 MB / 0.6111 GB, free: 68 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005743/1.088, allocations: 85.69 kB / 0.6112 GB, free: 67.94 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000402/1.088, allocations: 0.4973 MB / 0.6117 GB, free: 67.55 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002674/1.091, allocations: 1.569 MB / 0.6132 GB, free: 67.04 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003982/1.095, allocations: 4.334 MB / 0.6175 GB, free: 62.71 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003831/1.099, allocations: 2.596 MB / 0.62 GB, free: 61.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001304/1.099, allocations: 28.84 kB / 0.62 GB, free: 61.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=589) (initialization): time 0.0147/1.114, allocations: 6.908 MB / 0.6268 GB, free: 59.48 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001446/1.114, allocations: 57 kB / 0.6268 GB, free: 59.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005866/1.12, allocations: 2.509 MB / 0.6293 GB, free: 58.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004936/1.125, allocations: 1.511 MB / 0.6308 GB, free: 58.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003498/1.128, allocations: 1.015 MB / 0.6318 GB, free: 58.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008677/1.137, allocations: 7.221 MB / 0.6388 GB, free: 53.17 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00433/1.142, allocations: 364.8 kB / 0.6392 GB, free: 52.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001022/1.143, allocations: 284.8 kB / 0.6394 GB, free: 52.62 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 () * 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.001368/1.144, allocations: 445.7 kB / 0.6399 GB, free: 52.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006907/1.145, allocations: 241 kB / 0.6401 GB, free: 51.94 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00671/1.151, allocations: 2.822 MB / 0.6428 GB, free: 49.85 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005295/1.157, allocations: 2.488 MB / 0.6453 GB, free: 48.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.569e-05/1.157, allocations: 15.61 kB / 0.6453 GB, free: 48 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.316e-05/1.157, allocations: 11.06 kB / 0.6453 GB, free: 48 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01529/1.172, allocations: 6.851 MB / 0.652 GB, free: 42.67 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.73e-05/1.172, allocations: 0 / 0.652 GB, free: 42.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008694/1.173, allocations: 176.8 kB / 0.6522 GB, free: 42.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004429/1.177, allocations: 1.426 MB / 0.6535 GB, free: 41.48 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000218/1.178, allocations: 35.97 kB / 0.6536 GB, free: 41.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008518/1.186, allocations: 7.326 MB / 0.6607 GB, free: 33.87 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007427/1.187, allocations: 1.45 MB / 0.6621 GB, free: 32.28 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008178/1.195, allocations: 4.924 MB / 0.667 GB, free: 27.28 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/1.196, allocations: 305.9 kB / 0.6672 GB, free: 26.96 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007777/1.197, allocations: 20 kB / 0.6673 GB, free: 26.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001702/1.199, allocations: 135 kB / 0.6674 GB, free: 26.81 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003222/1.199, allocations: 88.31 kB / 0.6675 GB, free: 26.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001339/1.199, allocations: 35.98 kB / 0.6675 GB, free: 26.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003453/1.203, allocations: 1.661 MB / 0.6691 GB, free: 25.02 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.203, allocations: 0 / 0.6691 GB, free: 25.02 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005016/1.208, allocations: 0.7665 MB / 0.6699 GB, free: 24.26 MB / 426.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 () * 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.009062/1.217, allocations: 5.939 MB / 0.6757 GB, free: 18.25 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007458/1.224, allocations: 4.254 MB / 0.6798 GB, free: 13.97 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/1.224, allocations: 0 / 0.6798 GB, free: 13.97 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00292/1.227, allocations: 1.695 MB / 0.6815 GB, free: 12.23 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002003/1.229, allocations: 243.1 kB / 0.6817 GB, free: 12 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01602/1.245, allocations: 6.416 MB / 0.688 GB, free: 5.566 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002687/1.248, allocations: 2.342 MB / 0.6903 GB, free: 3.203 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003725/1.252, allocations: 1.415 MB / 0.6917 GB, free: 1.785 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001765/1.254, allocations: 1.112 MB / 0.6927 GB, free: 0.6719 MB / 426.7 MB Notification: Performance of SimCode: time 1.993e-06/1.254, allocations: 0 / 0.6927 GB, free: 0.6719 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3812/1.635, allocations: 54.98 MB / 0.7464 GB, free: 104.7 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000167/1.635, allocations: 197.3 kB / 0.7466 GB, free: 104.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.043/5.679, allocations: 1.422 kB / 0.7466 GB, free: 104.5 MB / 442.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