Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",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.001145/0.001145, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 221.5 MB / 230.3 MB, free: 7.516 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.0009434/0.0009433, allocations: 92.78 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.81e-05/2.834e-05, allocations: 4 kB / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.114, allocations: 50.42 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4212/0.5352, allocations: 100.5 MB / 488.1 MB, free: 10.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/0.5355, allocations: 91.94 kB / 488.2 MB, free: 10.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4738/1.009, allocations: 74.99 MB / 0.55 GB, free: 98.68 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.054e-06/1.009, allocations: 0 / 0.55 GB, free: 98.68 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002009/1.01, allocations: 78.39 kB / 0.55 GB, free: 98.68 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.01202/1.022, allocations: 3.485 MB / 0.5534 GB, free: 98.02 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.227e-05/1.022, allocations: 10.16 kB / 0.5535 GB, free: 98.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01191/1.034, allocations: 2.267 MB / 0.5557 GB, free: 97.78 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01269/1.046, allocations: 3.78 MB / 0.5594 GB, free: 97.32 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003845/1.047, allocations: 119.4 kB / 0.5595 GB, free: 97.32 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002127/1.049, allocations: 214.4 kB / 0.5597 GB, free: 97.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01496/1.064, allocations: 5.614 MB / 0.5652 GB, free: 97.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01806/1.082, allocations: 8.582 MB / 0.5735 GB, free: 94.73 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001857/1.082, allocations: 53.69 kB / 0.5736 GB, free: 94.73 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007288/1.083, allocations: 29.16 kB / 0.5736 GB, free: 94.73 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001317/1.084, allocations: 1.002 MB / 0.5746 GB, free: 94.73 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04004/1.124, allocations: 43.84 MB / 0.6174 GB, free: 63.67 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00342/1.128, allocations: 2.787 MB / 0.6201 GB, free: 62.14 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001835/1.13, allocations: 1.667 MB / 0.6218 GB, free: 61.44 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006711/1.13, allocations: 0.8676 MB / 0.6226 GB, free: 60.65 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/1.13, allocations: 57.09 kB / 0.6227 GB, free: 60.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=157): time 4.278e-06/1.13, allocations: 0 / 0.6227 GB, free: 60.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=173): time 0.03297/1.163, allocations: 15.78 MB / 0.6381 GB, free: 54.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.615e-05/1.163, allocations: 148.6 kB / 0.6382 GB, free: 54.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003798/1.167, allocations: 2.606 MB / 0.6408 GB, free: 52.95 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004004/1.168, allocations: 29.7 kB / 0.6408 GB, free: 52.92 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001402/1.169, allocations: 2.783 MB / 0.6435 GB, free: 50.38 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007794/1.17, allocations: 0.6501 MB / 0.6441 GB, free: 49.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002427/1.17, allocations: 0 / 0.6441 GB, free: 49.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002624/1.17, allocations: 0.545 MB / 0.6447 GB, free: 49.32 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002171/1.173, allocations: 1.822 MB / 0.6465 GB, free: 47.69 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003528/1.176, allocations: 5.327 MB / 0.6517 GB, free: 40.88 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00381/1.18, allocations: 3.073 MB / 0.6547 GB, free: 38.27 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.421e-05/1.18, allocations: 40 kB / 0.6547 GB, free: 38.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=753) (initialization): time 0.01425/1.194, allocations: 7.409 MB / 0.6619 GB, free: 32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.372e-05/1.194, allocations: 60 kB / 0.662 GB, free: 31.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001509/1.195, allocations: 128 kB / 0.6621 GB, free: 31.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004261/1.199, allocations: 1.289 MB / 0.6634 GB, free: 30.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004879/1.204, allocations: 1.324 MB / 0.6647 GB, free: 29.78 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007977/1.212, allocations: 5.884 MB / 0.6704 GB, free: 24.67 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00486/1.217, allocations: 241.8 kB / 0.6706 GB, free: 24.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001175/1.218, allocations: 356.7 kB / 0.671 GB, free: 24.14 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 574 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],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],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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (710): * Single equations (assignments): 706 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00107/1.219, allocations: 432.3 kB / 0.6714 GB, free: 23.71 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006737/1.226, allocations: 3.517 MB / 0.6748 GB, free: 20.91 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008106/1.227, allocations: 280.4 kB / 0.6751 GB, free: 20.63 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006628/1.233, allocations: 3.21 MB / 0.6782 GB, free: 18.19 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.946e-05/1.233, allocations: 20 kB / 0.6782 GB, free: 18.17 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.548e-05/1.233, allocations: 7.938 kB / 0.6783 GB, free: 18.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.771e-05/1.233, allocations: 10.12 kB / 0.6783 GB, free: 18.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01406/1.248, allocations: 7.087 MB / 0.6852 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/1.248, allocations: 4 kB / 0.6852 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001198/1.249, allocations: 251.6 kB / 0.6854 GB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003349/1.252, allocations: 1.102 MB / 0.6865 GB, free: 10.44 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002463/1.252, allocations: 15.94 kB / 0.6865 GB, free: 10.42 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006637/1.259, allocations: 5.454 MB / 0.6918 GB, free: 4.855 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/1.259, allocations: 0 / 0.6918 GB, free: 4.855 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008311/1.267, allocations: 5.631 MB / 0.6973 GB, free: 15.18 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009254/1.268, allocations: 333.2 kB / 0.6977 GB, free: 14.83 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003508/1.269, allocations: 3.938 kB / 0.6977 GB, free: 14.83 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001313/1.27, allocations: 83.86 kB / 0.6977 GB, free: 14.75 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000228/1.27, allocations: 89.17 kB / 0.6978 GB, free: 14.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/1.27, allocations: 48 kB / 0.6979 GB, free: 14.62 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002898/1.273, allocations: 1.704 MB / 0.6995 GB, free: 12.91 MB / 442.7 MB Notification: Performance of sort global known variables: time 2e-07/1.273, allocations: 0 / 0.6995 GB, free: 12.91 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004863/1.278, allocations: 0.7968 MB / 0.7003 GB, free: 12.12 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (136): * Single equations (assignments): 132 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0105/1.289, allocations: 6.452 MB / 0.7066 GB, free: 5.609 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008398/1.297, allocations: 4.483 MB / 0.711 GB, free: 1.145 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.198e-06/1.297, allocations: 0 / 0.711 GB, free: 1.145 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2442/1.542, allocations: 1.482 MB / 0.7124 GB, free: 104.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003195/1.545, allocations: 254.2 kB / 0.7127 GB, free: 104.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02278/1.568, allocations: 7.74 MB / 0.7202 GB, free: 102.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004372/1.572, allocations: 2.925 MB / 0.7231 GB, free: 102.2 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005543/1.578, allocations: 1.779 MB / 0.7248 GB, free: 102.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002613/1.58, allocations: 1.595 MB / 0.7264 GB, free: 102.1 MB / 442.7 MB Notification: Performance of SimCode: time 9.61e-07/1.58, allocations: 0 / 0.7264 GB, free: 102.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1003/1.681, allocations: 62.92 MB / 0.7878 GB, free: 81.2 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001516/1.681, allocations: 162.5 kB / 0.788 GB, free: 81.02 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.017/5.698, allocations: 0 / 0.788 GB, free: 81.02 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat