Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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 3.2.3+maint.om/package.mo", uses=false) 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 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.SpringWithMass,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",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.0009169/0.0009168, allocations: 96.06 kB / 16.93 MB, free: 5.98 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.0009282/0.0009282, allocations: 180.3 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.599/1.599, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000475/0.0004751, allocations: 19.28 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09614/0.09663, allocations: 47.57 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01511/0.1118, allocations: 15.27 MB / 343.7 MB, free: 4.676 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01003/0.1219, allocations: 4.797 MB / 348.5 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002729/0.1246, allocations: 67.81 kB / 348.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002267/0.1269, allocations: 0.7116 MB / 349.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007043/0.134, allocations: 2.412 MB / 351.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001238/0.1352, allocations: 367.3 kB / 352 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002932/0.1382, allocations: 1.497 MB / 353.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003312/0.1415, allocations: 1.85 MB / 355.4 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001352/0.1429, allocations: 0.6306 MB / 356 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001448/0.1444, allocations: 0.88 MB / 356.9 MB, free: 7.395 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005465/0.1449, allocations: 88 kB / 357 MB, free: 7.309 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001962/0.1469, allocations: 0.8308 MB / 357.8 MB, free: 6.477 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001252/0.1482, allocations: 0.9546 MB / 358.8 MB, free: 5.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009454/0.1491, allocations: 0.5079 MB / 359.3 MB, free: 5.004 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004289/0.1534, allocations: 3.293 MB / 362.6 MB, free: 1.703 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1534, allocations: 0 / 362.6 MB, free: 1.703 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1534, allocations: 7.938 kB / 362.6 MB, free: 1.695 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001645/0.1536, allocations: 0 / 362.6 MB, free: 1.695 MB / 302.1 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.006421/0.16, allocations: 2.587 MB / 365.2 MB, free: 15.05 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.871e-05/0.1601, allocations: 8.031 kB / 365.2 MB, free: 15.04 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001398/0.1615, allocations: 474.7 kB / 365.6 MB, free: 14.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007979/0.1695, allocations: 2.083 MB / 367.7 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003968/0.1735, allocations: 1.616 MB / 369.3 MB, free: 10.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001631/0.1737, allocations: 135.3 kB / 369.5 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001035/0.1747, allocations: 263.6 kB / 369.7 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01285/0.1876, allocations: 6.688 MB / 376.4 MB, free: 3.277 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000116/0.1878, allocations: 27.72 kB / 376.4 MB, free: 3.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008084/0.1886, allocations: 91.89 kB / 376.5 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003006/0.1916, allocations: 1.367 MB / 377.9 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1998/0.3915, allocations: 6.066 MB / 384 MB, free: 48.68 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03101/0.4225, allocations: 25.67 MB / 409.6 MB, free: 29.89 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006057/0.4286, allocations: 2.674 MB / 412.3 MB, free: 28.3 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005079/0.4337, allocations: 3.906 MB / 416.2 MB, free: 24.65 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.488e-05/0.4338, allocations: 43.12 kB / 416.3 MB, free: 24.6 MB / 318.1 MB Notification: Performance of pre-optimization done (n=112): time 2.535e-06/0.4338, allocations: 11.94 kB / 416.3 MB, free: 24.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=125): time 0.02288/0.4567, allocations: 10.64 MB / 426.9 MB, free: 13.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009045/0.4576, allocations: 1.602 MB / 428.5 MB, free: 11.96 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003066/0.4607, allocations: 2.84 MB / 431.3 MB, free: 9.102 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001833/0.4609, allocations: 41.7 kB / 431.4 MB, free: 9.055 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008915/0.4618, allocations: 2.093 MB / 433.5 MB, free: 6.961 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003894/0.4622, allocations: 0.5004 MB / 434 MB, free: 6.465 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/0.4623, allocations: 98.67 kB / 434.1 MB, free: 6.371 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.4625, allocations: 0.4961 MB / 434.6 MB, free: 5.867 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001941/0.4645, allocations: 1.652 MB / 436.2 MB, free: 4.207 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003304/0.4678, allocations: 4.432 MB / 440.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00384/0.4717, allocations: 2.645 MB / 443.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.441e-05/0.4717, allocations: 28 kB / 443.3 MB, free: 11.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01962/0.4914, allocations: 7.983 MB / 451.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.166e-05/0.4915, allocations: 48 kB / 451.4 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0109/0.5024, allocations: 3.504 MB / 454.9 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01171/0.5142, allocations: 2.597 MB / 457.5 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003587/0.5178, allocations: 1.006 MB / 458.5 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01408/0.5319, allocations: 9.325 MB / 467.8 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003686/0.5356, allocations: 330.6 kB / 468.1 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005111/0.5362, allocations: 280 kB / 468.4 MB, free: 2.324 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * 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 (543): * Single equations (assignments): 535 * 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.002228/0.5384, allocations: 1.419 MB / 469.8 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004243/0.5388, allocations: 244.9 kB / 470 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006085/0.5449, allocations: 2.84 MB / 472.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005389/0.5503, allocations: 2.509 MB / 475.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/0.5504, allocations: 4 kB / 475.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.68e-05/0.5504, allocations: 7.969 kB / 475.4 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01299/0.5634, allocations: 6.886 MB / 482.3 MB, free: 4.305 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.818e-05/0.5634, allocations: 4 kB / 482.3 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008709/0.5643, allocations: 186.5 kB / 482.5 MB, free: 4.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004648/0.569, allocations: 1.432 MB / 483.9 MB, free: 2.684 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001747/0.5692, allocations: 31.98 kB / 483.9 MB, free: 2.652 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009745/0.5789, allocations: 7.534 MB / 491.5 MB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001038/0.58, allocations: 1.467 MB / 492.9 MB, free: 9.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008675/0.5887, allocations: 4.955 MB / 497.9 MB, free: 4.219 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009771/0.5897, allocations: 305.8 kB / 498.2 MB, free: 3.898 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002741/0.59, allocations: 33.19 kB / 498.2 MB, free: 3.867 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/0.591, allocations: 111.8 kB / 498.3 MB, free: 3.758 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002585/0.5913, allocations: 76.44 kB / 498.4 MB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.932e-05/0.5914, allocations: 41 kB / 498.5 MB, free: 3.645 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002597/0.594, allocations: 1.776 MB / 0.4885 GB, free: 1.859 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.594, allocations: 0 / 0.4885 GB, free: 1.859 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003756/0.5978, allocations: 0.8108 MB / 0.4893 GB, free: 1.055 MB / 382.1 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.00894/0.6068, allocations: 5.988 MB / 0.4951 GB, free: 11 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007529/0.6143, allocations: 4.385 MB / 0.4994 GB, free: 6.586 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/0.6143, allocations: 0.8438 kB / 0.4994 GB, free: 6.586 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003036/0.6174, allocations: 1.722 MB / 0.5011 GB, free: 4.816 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001335/0.6187, allocations: 245.7 kB / 0.5013 GB, free: 4.574 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2465/0.8652, allocations: 93.04 MB / 0.5922 GB, free: 69.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001961/0.8672, allocations: 2.35 MB / 0.5945 GB, free: 68.12 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.004669/0.8719, allocations: 1.409 MB / 0.5959 GB, free: 68.01 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001759/0.8737, allocations: 1.122 MB / 0.597 GB, free: 67.12 MB / 414.1 MB Notification: Performance of SimCode: time 1.353e-06/0.8738, allocations: 0 / 0.597 GB, free: 67.12 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08837/0.9621, allocations: 57.74 MB / 0.6534 GB, free: 13.01 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001684/0.9623, allocations: 230.9 kB / 0.6536 GB, free: 12.77 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.324/4.287, allocations: 0 / 0.6536 GB, free: 12.77 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat does not exist to compare? outputFormat=mat