Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",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.0008993/0.0008994, allocations: 89.39 kB / 16.32 MB, free: 6.449 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.00103/0.00103, allocations: 180.2 kB / 17.21 MB, free: 6.32 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.369/1.369, allocations: 223.2 MB / 241.2 MB, free: 308 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002565/0.0002568, allocations: 9.531 kB / 300.9 MB, free: 6.363 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1231, allocations: 50.41 MB / 351.3 MB, free: 3.938 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2983/0.4214, allocations: 42.53 MB / 393.9 MB, free: 3.168 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02583/0.4473, allocations: 9.433 MB / 403.3 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01373/0.4611, allocations: 196.2 kB / 403.5 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009744/0.4709, allocations: 2.193 MB / 405.7 MB, free: 11.37 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02377/0.4947, allocations: 6.578 MB / 412.3 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003859/0.4986, allocations: 0.6925 MB / 413 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008346/0.507, allocations: 5.187 MB / 418.1 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007508/0.5146, allocations: 4.509 MB / 422.7 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003077/0.5177, allocations: 1.385 MB / 424 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004527/0.5223, allocations: 2.189 MB / 426.2 MB, free: 9.621 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000798/0.5231, allocations: 160 kB / 426.4 MB, free: 9.465 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002688/0.5258, allocations: 1.002 MB / 427.4 MB, free: 8.461 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002213/0.528, allocations: 1.862 MB / 429.3 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001464/0.5295, allocations: 0.8972 MB / 430.1 MB, free: 5.688 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00837/0.5379, allocations: 5.714 MB / 435.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.448e-05/0.538, allocations: 4 kB / 435.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.899e-06/0.538, allocations: 0 / 435.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003963/0.5384, allocations: 0 / 435.9 MB, free: 15.96 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.01133/0.5497, allocations: 4.4 MB / 440.3 MB, free: 11.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/0.5498, allocations: 12.03 kB / 440.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002557/0.5524, allocations: 0.8019 MB / 441.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008464/0.5608, allocations: 2.185 MB / 443.3 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007204/0.5681, allocations: 3.043 MB / 446.3 MB, free: 5.363 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002891/0.5684, allocations: 274.8 kB / 446.6 MB, free: 5.094 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001952/0.5704, allocations: 431.6 kB / 447 MB, free: 4.672 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02517/0.5956, allocations: 12.22 MB / 459.2 MB, free: 7.645 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001343/0.5958, allocations: 47.53 kB / 459.3 MB, free: 7.598 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000527/0.5963, allocations: 175.8 kB / 459.4 MB, free: 7.426 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003167/0.5995, allocations: 2.17 MB / 461.6 MB, free: 5.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02182/0.6213, allocations: 10.19 MB / 471.8 MB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05549/0.6768, allocations: 44.25 MB / 0.504 GB, free: 13.54 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01095/0.6878, allocations: 4.588 MB / 0.5084 GB, free: 8.758 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002636/0.6905, allocations: 1.72 MB / 0.5101 GB, free: 7.027 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01435/0.7049, allocations: 8.192 MB / 0.5181 GB, free: 14.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.218e-05/0.705, allocations: 47.88 kB / 0.5182 GB, free: 14.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 5.32e-06/0.705, allocations: 0 / 0.5182 GB, free: 14.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.2725/0.9775, allocations: 15.92 MB / 0.5337 GB, free: 151.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001143/0.9787, allocations: 1.596 MB / 0.5353 GB, free: 150.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00772/0.9864, allocations: 4.191 MB / 0.5394 GB, free: 149.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005444/0.987, allocations: 53.2 kB / 0.5394 GB, free: 149.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002625/0.9896, allocations: 3.407 MB / 0.5427 GB, free: 147.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001184/0.9908, allocations: 0.8012 MB / 0.5435 GB, free: 146.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003231/0.9912, allocations: 137.4 kB / 0.5437 GB, free: 146.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003889/0.9916, allocations: 0.5876 MB / 0.5442 GB, free: 146.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00433/0.9959, allocations: 2.205 MB / 0.5464 GB, free: 145.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006522/1.002, allocations: 6.332 MB / 0.5526 GB, free: 139.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006673/1.009, allocations: 3.611 MB / 0.5561 GB, free: 138 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001961/1.009, allocations: 45.34 kB / 0.5561 GB, free: 138 MB / 446.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01859/1.028, allocations: 9.032 MB / 0.565 GB, free: 134.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001313/1.028, allocations: 70.62 kB / 0.565 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005251/1.033, allocations: 2.835 MB / 0.5678 GB, free: 133.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002943/1.036, allocations: 1.098 MB / 0.5689 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005074/1.042, allocations: 1.563 MB / 0.5704 GB, free: 131.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004004/1.046, allocations: 4.382 MB / 0.5747 GB, free: 127.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00625/1.052, allocations: 421.4 kB / 0.5751 GB, free: 126.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001384/1.053, allocations: 419.3 kB / 0.5755 GB, free: 126.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],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],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 (848): * Single equations (assignments): 839 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006079/1.059, allocations: 2.21 MB / 0.5776 GB, free: 124.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001288/1.061, allocations: 375.1 kB / 0.578 GB, free: 123.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006982/1.068, allocations: 3.293 MB / 0.5812 GB, free: 120.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004537/1.072, allocations: 2.734 MB / 0.5839 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-05/1.072, allocations: 4 kB / 0.5839 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.798e-05/1.072, allocations: 15.91 kB / 0.5839 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02134/1.094, allocations: 10.33 MB / 0.594 GB, free: 107.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.053e-05/1.094, allocations: 12 kB / 0.594 GB, free: 107.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001467/1.095, allocations: 363.5 kB / 0.5943 GB, free: 106.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00253/1.098, allocations: 0.9904 MB / 0.5953 GB, free: 105.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002539/1.098, allocations: 59.97 kB / 0.5954 GB, free: 105.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004132/1.102, allocations: 4.589 MB / 0.5998 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007553/1.103, allocations: 1.478 MB / 0.6013 GB, free: 99.19 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008195/1.111, allocations: 5.901 MB / 0.6071 GB, free: 93.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001505/1.113, allocations: 444 kB / 0.6075 GB, free: 92.63 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001005/1.114, allocations: 55.98 kB / 0.6075 GB, free: 92.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002124/1.116, allocations: 152.6 kB / 0.6077 GB, free: 92.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003022/1.116, allocations: 172.5 kB / 0.6078 GB, free: 92.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001525/1.116, allocations: 77.94 kB / 0.6079 GB, free: 92.18 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004673/1.121, allocations: 2.578 MB / 0.6104 GB, free: 89.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.121, allocations: 0 / 0.6104 GB, free: 89.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006591/1.128, allocations: 1.133 MB / 0.6115 GB, free: 88.46 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008648/1.136, allocations: 6.596 MB / 0.618 GB, free: 81.67 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009675/1.146, allocations: 5.831 MB / 0.6237 GB, free: 75.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.338e-05/1.146, allocations: 0 / 0.6237 GB, free: 75.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003641/1.15, allocations: 2.183 MB / 0.6258 GB, free: 73.54 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004298/1.154, allocations: 482.5 kB / 0.6263 GB, free: 73.07 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06095/1.215, allocations: 38.05 MB / 0.6634 GB, free: 30.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003566/1.219, allocations: 3.458 MB / 0.6668 GB, free: 27.21 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005157/1.224, allocations: 2.019 MB / 0.6688 GB, free: 25.19 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002738/1.227, allocations: 2.093 MB / 0.6708 GB, free: 23.09 MB / 446.1 MB Notification: Performance of SimCode: time 1.182e-06/1.227, allocations: 3.938 kB / 0.6708 GB, free: 23.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3592/1.586, allocations: 81.68 MB / 0.7506 GB, free: 95.2 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001647/1.586, allocations: 241.2 kB / 0.7508 GB, free: 94.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.089/5.675, allocations: 4 kB / 0.7508 GB, free: 94.95 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat does not exist to compare? outputFormat=mat