Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 96.92 kB / 16.3 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 184 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000273/0.0002733, allocations: 6.906 kB / 300.8 MB, free: 6.43 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1084, allocations: 50.43 MB / 351.2 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.03381/0.1423, allocations: 33.05 MB / 384.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01921/0.1615, allocations: 8.318 MB / 392.6 MB, free: 2.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00546/0.1671, allocations: 171.5 kB / 392.8 MB, free: 2.117 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005732/0.1728, allocations: 1.61 MB / 394.4 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01422/0.1871, allocations: 4.866 MB / 399.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002759/0.1898, allocations: 0.6201 MB / 399.9 MB, free: 11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00433/0.1942, allocations: 2.381 MB / 402.3 MB, free: 8.617 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004627/0.1988, allocations: 3.351 MB / 405.6 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001588/0.2005, allocations: 1.04 MB / 406.6 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001781/0.2023, allocations: 1.46 MB / 408.1 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004195/0.2027, allocations: 140 kB / 408.2 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001436/0.2041, allocations: 0.7139 MB / 409 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001389/0.2055, allocations: 1.512 MB / 410.5 MB, free: 340 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008315/0.2064, allocations: 0.7882 MB / 411.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004803/0.2112, allocations: 4.851 MB / 416.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2112, allocations: 0 / 416.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.2112, allocations: 0 / 416.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001295/0.2114, allocations: 0 / 416.1 MB, free: 10.67 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.006642/0.218, allocations: 3.874 MB / 420 MB, free: 6.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.2181, allocations: 12.03 kB / 420 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001004/0.2191, allocations: 0.6871 MB / 420.7 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008181/0.2273, allocations: 2.264 MB / 422.9 MB, free: 3.746 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005501/0.2328, allocations: 2.406 MB / 425.3 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000232/0.2331, allocations: 225.6 kB / 425.6 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009797/0.2341, allocations: 299.7 kB / 425.9 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.216/0.4501, allocations: 9.695 MB / 435.6 MB, free: 61.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001598/0.4503, allocations: 54.05 kB / 435.6 MB, free: 61.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005086/0.4508, allocations: 144.9 kB / 435.8 MB, free: 61.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003199/0.454, allocations: 1.921 MB / 437.7 MB, free: 61.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01543/0.4694, allocations: 7.688 MB / 445.4 MB, free: 59.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03997/0.5094, allocations: 37.85 MB / 483.2 MB, free: 21.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006344/0.5158, allocations: 2.888 MB / 486.1 MB, free: 18.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006068/0.522, allocations: 3.807 MB / 489.9 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.522, allocations: 47.22 kB / 489.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=134): time 3.286e-06/0.5221, allocations: 0 / 489.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=152): time 0.02035/0.5424, allocations: 9.326 MB / 499.3 MB, free: 4.617 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.392e-05/0.5425, allocations: 141.5 kB / 499.4 MB, free: 4.449 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004356/0.5469, allocations: 4.132 MB / 0.4917 GB, free: 344 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001922/0.5471, allocations: 41.7 kB / 0.4918 GB, free: 296 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002441/0.5495, allocations: 3.098 MB / 0.4948 GB, free: 13.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000712/0.5503, allocations: 0.6078 MB / 0.4954 GB, free: 12.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002011/0.5505, allocations: 120 kB / 0.4955 GB, free: 12.53 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003956/0.5509, allocations: 0.5538 MB / 0.4961 GB, free: 11.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00252/0.5534, allocations: 1.542 MB / 0.4976 GB, free: 10.42 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005581/0.559, allocations: 5.288 MB / 0.5027 GB, free: 3.234 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004217/0.5632, allocations: 2.796 MB / 0.5055 GB, free: 452 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.43e-05/0.5633, allocations: 36 kB / 0.5055 GB, free: 416 kB / 366.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01217/0.5755, allocations: 6.573 MB / 0.5119 GB, free: 9.832 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.79e-05/0.5756, allocations: 64 kB / 0.512 GB, free: 9.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001375/0.5757, allocations: 132 kB / 0.5121 GB, free: 9.641 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001785/0.5759, allocations: 203.9 kB / 0.5123 GB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004001/0.5799, allocations: 1.372 MB / 0.5136 GB, free: 8.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002053/0.5802, allocations: 263 kB / 0.5139 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003599/0.5838, allocations: 287.5 kB / 0.5142 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005096/0.5843, allocations: 364 kB / 0.5145 GB, free: 7.172 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (738): * Single equations (assignments): 735 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002774/0.5871, allocations: 1.982 MB / 0.5164 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005068/0.5876, allocations: 335.7 kB / 0.5168 GB, free: 4.852 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001902/0.5895, allocations: 1.238 MB / 0.518 GB, free: 3.602 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-05/0.5895, allocations: 16 kB / 0.518 GB, free: 3.586 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.627e-06/0.5896, allocations: 4 kB / 0.518 GB, free: 3.582 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.663e-05/0.5896, allocations: 11.97 kB / 0.518 GB, free: 3.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008813/0.5984, allocations: 5.76 MB / 0.5236 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.015e-05/0.5985, allocations: 16 kB / 0.5236 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009636/0.5994, allocations: 279.5 kB / 0.5239 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.672e-05/0.5995, allocations: 28 kB / 0.5239 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.226e-05/0.5996, allocations: 52 kB / 0.524 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.716e-05/0.5996, allocations: 35.86 kB / 0.524 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-05/0.5996, allocations: 27.88 kB / 0.524 GB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004497/0.6041, allocations: 5.267 MB / 0.5292 GB, free: 7.234 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009898/0.6051, allocations: 424.5 kB / 0.5296 GB, free: 6.797 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003207/0.6055, allocations: 51.98 kB / 0.5296 GB, free: 6.746 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001137/0.6066, allocations: 63.95 kB / 0.5297 GB, free: 6.684 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001707/0.6068, allocations: 151.4 kB / 0.5298 GB, free: 6.535 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.836e-05/0.6069, allocations: 71.84 kB / 0.5299 GB, free: 6.469 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004394/0.6113, allocations: 2.599 MB / 0.5325 GB, free: 3.891 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.6113, allocations: 0 / 0.5325 GB, free: 3.891 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005428/0.6168, allocations: 0.8789 MB / 0.5333 GB, free: 3.02 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * 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 (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007078/0.6239, allocations: 10.41 MB / 0.5435 GB, free: 8.039 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006423/0.6303, allocations: 3.592 MB / 0.547 GB, free: 4.477 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.572e-05/0.6304, allocations: 256 / 0.547 GB, free: 4.477 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001118/0.6315, allocations: 0.7288 MB / 0.5477 GB, free: 3.75 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002354/0.6339, allocations: 412.5 kB / 0.5481 GB, free: 3.352 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2589/0.8928, allocations: 122.9 MB / 0.6681 GB, free: 63.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002932/0.8958, allocations: 3.183 MB / 0.6712 GB, free: 62.97 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003924/0.8997, allocations: 1.771 MB / 0.6729 GB, free: 62.81 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00203/0.9018, allocations: 1.796 MB / 0.6747 GB, free: 62.11 MB / 446.1 MB Notification: Performance of SimCode: time 1.654e-06/0.9018, allocations: 4 kB / 0.6747 GB, free: 62.11 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09856/1, allocations: 65.75 MB / 0.7389 GB, free: 0.8203 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001463/1.001, allocations: 210.1 kB / 0.7391 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.918/4.919, allocations: 8.062 kB / 0.7391 GB, free: 0.5625 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat does not exist to compare? outputFormat=mat