Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001025/0.001025, allocations: 181.2 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.361/1.361, allocations: 205.4 MB / 223.1 MB, free: 9.137 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009001/0.0008999, allocations: 96.03 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002696/0.0002696, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.2275, allocations: 47.56 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1217/0.3492, allocations: 99.7 MB / 475.6 MB, free: 12.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.3495, allocations: 91.95 kB / 475.7 MB, free: 12.82 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.331/0.6806, allocations: 75.64 MB / 0.5384 GB, free: 79.08 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.6806, allocations: 0 / 0.5384 GB, free: 79.08 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001333/0.6808, allocations: 72 kB / 0.5385 GB, free: 79.01 MB / 378.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.008245/0.689, allocations: 3.663 MB / 0.5421 GB, free: 75.28 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.6891, allocations: 12.02 kB / 0.5421 GB, free: 75.27 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001713/0.6908, allocations: 0.6841 MB / 0.5427 GB, free: 74.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008566/0.6994, allocations: 2.276 MB / 0.545 GB, free: 72.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009178/0.7086, allocations: 3.956 MB / 0.5488 GB, free: 68.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002741/0.7089, allocations: 275.3 kB / 0.5491 GB, free: 68.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001286/0.7102, allocations: 371.8 kB / 0.5495 GB, free: 67.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01844/0.7286, allocations: 10.49 MB / 0.5597 GB, free: 56.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001657/0.7288, allocations: 51.47 kB / 0.5597 GB, free: 56.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001032/0.7299, allocations: 187.9 kB / 0.5599 GB, free: 55.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001267/0.7312, allocations: 0.9976 MB / 0.5609 GB, free: 54.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01572/0.7469, allocations: 8.754 MB / 0.5694 GB, free: 46.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04022/0.7872, allocations: 44.74 MB / 0.6131 GB, free: 64 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009622/0.7968, allocations: 3.865 MB / 0.6169 GB, free: 12 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01423/0.8111, allocations: 7.641 MB / 0.6244 GB, free: 4.078 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.105e-05/0.8112, allocations: 51.56 kB / 0.6244 GB, free: 4.02 MB / 394.7 MB Notification: Performance of pre-optimization done (n=150): time 3.536e-06/0.8112, allocations: 0 / 0.6244 GB, free: 4.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=166): time 0.04851/0.8597, allocations: 17.37 MB / 0.6414 GB, free: 2.461 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.893e-05/0.8598, allocations: 149.5 kB / 0.6415 GB, free: 2.285 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.163/1.023, allocations: 3.123 MB / 0.6446 GB, free: 106.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000359/1.023, allocations: 49.8 kB / 0.6446 GB, free: 106.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001326/1.025, allocations: 2.739 MB / 0.6473 GB, free: 105.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004748/1.025, allocations: 0.6371 MB / 0.6479 GB, free: 105.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002168/1.025, allocations: 111.4 kB / 0.648 GB, free: 105.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001985/1.025, allocations: 0.5382 MB / 0.6486 GB, free: 104.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002413/1.028, allocations: 1.938 MB / 0.6504 GB, free: 104.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003577/1.032, allocations: 5.329 MB / 0.6557 GB, free: 100.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004657/1.036, allocations: 3.131 MB / 0.6587 GB, free: 100.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.836e-05/1.036, allocations: 34.34 kB / 0.6587 GB, free: 100.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.01365/1.05, allocations: 8.143 MB / 0.6667 GB, free: 99.01 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.266e-05/1.05, allocations: 56.19 kB / 0.6667 GB, free: 99.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.85e-05/1.05, allocations: 120.8 kB / 0.6669 GB, free: 99.01 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003588/1.054, allocations: 1.307 MB / 0.6681 GB, free: 98.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003406/1.057, allocations: 1.26 MB / 0.6694 GB, free: 98.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007279/1.064, allocations: 6.305 MB / 0.6755 GB, free: 95.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003885/1.068, allocations: 344.7 kB / 0.6759 GB, free: 95.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003888/1.069, allocations: 340.9 kB / 0.6762 GB, free: 95.63 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 550 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (679): * Single equations (assignments): 675 * 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 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002107/1.071, allocations: 1.813 MB / 0.678 GB, free: 94.76 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003504/1.071, allocations: 308.2 kB / 0.6782 GB, free: 94.59 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005865/1.077, allocations: 3.354 MB / 0.6815 GB, free: 93.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.889e-05/1.077, allocations: 20.3 kB / 0.6815 GB, free: 93.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/1.077, allocations: 3.844 kB / 0.6815 GB, free: 93.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.129e-05/1.077, allocations: 11.16 kB / 0.6816 GB, free: 93.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01162/1.089, allocations: 7.59 MB / 0.689 GB, free: 90.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/1.089, allocations: 3.906 kB / 0.689 GB, free: 90.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009946/1.09, allocations: 235.1 kB / 0.6892 GB, free: 90.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003265/1.093, allocations: 1.121 MB / 0.6903 GB, free: 90.64 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001263/1.093, allocations: 24.8 kB / 0.6903 GB, free: 90.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006736/1.1, allocations: 5.946 MB / 0.6961 GB, free: 86.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/1.1, allocations: 5.109 kB / 0.6961 GB, free: 86.79 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00788/1.108, allocations: 5.743 MB / 0.7017 GB, free: 81.96 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001299/1.109, allocations: 0.5745 MB / 0.7023 GB, free: 81.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004488/1.11, allocations: 28 kB / 0.7023 GB, free: 81.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001324/1.111, allocations: 101.1 kB / 0.7024 GB, free: 81.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001811/1.111, allocations: 90.31 kB / 0.7025 GB, free: 81.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/1.111, allocations: 44 kB / 0.7025 GB, free: 81.22 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002981/1.114, allocations: 2.166 MB / 0.7047 GB, free: 79.45 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.114, allocations: 0 / 0.7047 GB, free: 79.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003618/1.118, allocations: 0.9255 MB / 0.7056 GB, free: 78.54 MB / 410.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 125 * 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.007965/1.126, allocations: 6.573 MB / 0.712 GB, free: 72.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006844/1.133, allocations: 4.745 MB / 0.7166 GB, free: 68.75 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/1.133, allocations: 4 kB / 0.7166 GB, free: 68.74 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00182/1.135, allocations: 1.521 MB / 0.7181 GB, free: 67.4 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00164/1.136, allocations: 329.4 kB / 0.7184 GB, free: 67.11 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2136/1.35, allocations: 112.8 MB / 0.8286 GB, free: 93.93 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002441/1.352, allocations: 2.932 MB / 0.8314 GB, free: 93.15 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003763/1.356, allocations: 1.703 MB / 0.8331 GB, free: 93.12 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001654/1.358, allocations: 1.591 MB / 0.8347 GB, free: 93.11 MB / 426.7 MB Notification: Performance of SimCode: time 8.71e-07/1.358, allocations: 2.75 kB / 0.8347 GB, free: 93.11 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08315/1.441, allocations: 67.72 MB / 0.9008 GB, free: 43.16 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001422/1.441, allocations: 224.2 kB / 0.901 GB, free: 42.92 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.554/4.995, allocations: 3.906 kB / 0.901 GB, free: 42.92 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat