Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001592/0.001591, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.153/2.153, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001128/0.001128, allocations: 82.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.642e-05/3.646e-05, allocations: 7.938 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1108, allocations: 47.58 MB / 369.2 MB, free: 2.09 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4771/0.5879, allocations: 99.59 MB / 468.8 MB, free: 9.875 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000332/0.5883, allocations: 90.12 kB / 468.9 MB, free: 9.828 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6732/1.262, allocations: 75.68 MB / 0.5318 GB, free: 93.45 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.264e-06/1.262, allocations: 0 / 0.5318 GB, free: 93.45 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002549/1.262, allocations: 70.22 kB / 0.5319 GB, free: 93.45 MB / 410.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.01592/1.278, allocations: 3.488 MB / 0.5353 GB, free: 92.84 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.849e-05/1.278, allocations: 10.12 kB / 0.5353 GB, free: 92.84 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003459/1.281, allocations: 0.6855 MB / 0.5359 GB, free: 92.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01928/1.301, allocations: 2.266 MB / 0.5382 GB, free: 92.53 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01761/1.318, allocations: 3.938 MB / 0.542 GB, free: 92.16 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005385/1.319, allocations: 286 kB / 0.5423 GB, free: 92.15 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002521/1.322, allocations: 373 kB / 0.5426 GB, free: 92.15 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03628/1.358, allocations: 10.38 MB / 0.5528 GB, free: 89.57 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002899/1.358, allocations: 51.06 kB / 0.5528 GB, free: 89.57 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001984/1.36, allocations: 184.8 kB / 0.553 GB, free: 89.57 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002641/1.363, allocations: 1.005 MB / 0.554 GB, free: 89.57 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02884/1.392, allocations: 8.58 MB / 0.5623 GB, free: 89.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06582/1.458, allocations: 44.74 MB / 0.606 GB, free: 56.52 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01611/1.474, allocations: 3.844 MB / 0.6098 GB, free: 54.84 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003926/1.478, allocations: 1.764 MB / 0.6115 GB, free: 54.11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01846/1.496, allocations: 7.648 MB / 0.619 GB, free: 49.89 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.946e-05/1.496, allocations: 49.94 kB / 0.619 GB, free: 49.84 MB / 410.7 MB Notification: Performance of pre-optimization done (n=150): time 5.741e-06/1.496, allocations: 3.188 kB / 0.619 GB, free: 49.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=166): time 0.0765/1.573, allocations: 14.72 MB / 0.6334 GB, free: 38.41 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.786e-05/1.573, allocations: 145.4 kB / 0.6335 GB, free: 38.24 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007425/1.581, allocations: 3.064 MB / 0.6365 GB, free: 35.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004608/1.581, allocations: 45.7 kB / 0.6366 GB, free: 35.47 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002338/1.583, allocations: 2.691 MB / 0.6392 GB, free: 33.03 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001039/1.585, allocations: 0.6477 MB / 0.6398 GB, free: 32.46 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007013/1.585, allocations: 115.8 kB / 0.6399 GB, free: 32.35 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000395/1.586, allocations: 0.5363 MB / 0.6405 GB, free: 31.87 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004881/1.591, allocations: 1.868 MB / 0.6423 GB, free: 30.19 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007267/1.598, allocations: 5.257 MB / 0.6474 GB, free: 23.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007264/1.605, allocations: 3.092 MB / 0.6504 GB, free: 20.85 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001263/1.605, allocations: 36 kB / 0.6505 GB, free: 20.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.02531/1.631, allocations: 7.895 MB / 0.6582 GB, free: 14.02 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001081/1.631, allocations: 56.22 kB / 0.6582 GB, free: 13.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001645/1.631, allocations: 124 kB / 0.6584 GB, free: 13.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007343/1.638, allocations: 1.312 MB / 0.6596 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008181/1.647, allocations: 1.263 MB / 0.6609 GB, free: 11.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01449/1.661, allocations: 6.118 MB / 0.6669 GB, free: 5.012 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007229/1.669, allocations: 347.4 kB / 0.6672 GB, free: 4.676 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001498/1.67, allocations: 336 kB / 0.6675 GB, free: 4.348 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 () * 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.001779/1.672, allocations: 0.5377 MB / 0.668 GB, free: 3.801 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008349/1.673, allocations: 304.1 kB / 0.6683 GB, free: 3.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01223/1.685, allocations: 3.326 MB / 0.6716 GB, free: 164 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.505e-05/1.685, allocations: 20 kB / 0.6716 GB, free: 144 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.6e-05/1.685, allocations: 8 kB / 0.6716 GB, free: 136 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-05/1.685, allocations: 11.91 kB / 0.6716 GB, free: 124 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02783/1.713, allocations: 7.565 MB / 0.679 GB, free: 8.512 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.143e-05/1.713, allocations: 0 / 0.679 GB, free: 8.512 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002497/1.716, allocations: 239.7 kB / 0.6792 GB, free: 8.277 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007264/1.723, allocations: 1.114 MB / 0.6803 GB, free: 7.16 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004366/1.723, allocations: 24 kB / 0.6803 GB, free: 7.137 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01562/1.739, allocations: 5.753 MB / 0.686 GB, free: 1.254 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.707e-06/1.739, allocations: 8.016 kB / 0.686 GB, free: 1.246 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3248/2.064, allocations: 5.679 MB / 0.6915 GB, free: 98.15 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002613/2.067, allocations: 0.5774 MB / 0.6921 GB, free: 98.06 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001169/2.068, allocations: 25.84 kB / 0.6921 GB, free: 98.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003211/2.071, allocations: 109.8 kB / 0.6922 GB, free: 98.06 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005523/2.072, allocations: 92.62 kB / 0.6923 GB, free: 98.06 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002094/2.072, allocations: 41 kB / 0.6923 GB, free: 98.06 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006504/2.078, allocations: 2.106 MB / 0.6944 GB, free: 97.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.402e-06/2.079, allocations: 0 / 0.6944 GB, free: 97.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00745/2.086, allocations: 0.9245 MB / 0.6953 GB, free: 97.9 MB / 426.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 (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.01916/2.105, allocations: 6.523 MB / 0.7017 GB, free: 96.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01159/2.117, allocations: 4.65 MB / 0.7062 GB, free: 96.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.298e-06/2.117, allocations: 0 / 0.7062 GB, free: 96.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003876/2.121, allocations: 1.511 MB / 0.7077 GB, free: 96.44 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003247/2.124, allocations: 321.9 kB / 0.708 GB, free: 96.43 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02765/2.152, allocations: 8.167 MB / 0.716 GB, free: 95.03 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005335/2.157, allocations: 2.937 MB / 0.7188 GB, free: 94.26 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004096/2.161, allocations: 1.637 MB / 0.7204 GB, free: 93.26 MB / 426.7 MB Notification: Performance of SimCode: time 1.794e-06/2.161, allocations: 0 / 0.7204 GB, free: 93.26 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.205/6.366, allocations: 84.84 MB / 0.8033 GB, free: 36.86 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat