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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 101.2 kB / 16.94 MB, free: 5.984 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.001596/0.001596, allocations: 178.8 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.379/1.379, 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.0004405/0.0004407, allocations: 15.28 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09318/0.09363, allocations: 47.58 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.02702/0.1207, allocations: 29.72 MB / 358.1 MB, free: 6.188 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01747/0.1382, allocations: 7.717 MB / 365.9 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005951/0.1442, allocations: 143.6 kB / 366 MB, free: 14.31 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004432/0.1487, allocations: 1.435 MB / 367.4 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01333/0.162, allocations: 4.329 MB / 371.8 MB, free: 8.527 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002139/0.1642, allocations: 0.5615 MB / 372.3 MB, free: 7.965 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00335/0.1675, allocations: 1.942 MB / 374.3 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004108/0.1717, allocations: 3.357 MB / 377.6 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001079/0.1728, allocations: 0.8642 MB / 378.5 MB, free: 1.742 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001405/0.1742, allocations: 1.203 MB / 379.7 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000282/0.1745, allocations: 124 kB / 379.8 MB, free: 424 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1986/0.373, allocations: 0.8336 MB / 380.7 MB, free: 12.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002171/0.3752, allocations: 1.316 MB / 382 MB, free: 12.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001035/0.3763, allocations: 0.7064 MB / 382.7 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006303/0.3826, allocations: 4.496 MB / 387.2 MB, free: 12.46 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.3826, allocations: 0 / 387.2 MB, free: 12.46 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.3826, allocations: 1 kB / 387.2 MB, free: 12.46 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001943/0.3828, allocations: 0 / 387.2 MB, free: 12.46 MB / 318.1 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.0095/0.3923, allocations: 3.486 MB / 390.7 MB, free: 10.81 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.114e-05/0.3924, allocations: 9.844 kB / 390.7 MB, free: 10.81 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001456/0.3939, allocations: 0.6399 MB / 391.3 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008349/0.4022, allocations: 2.243 MB / 393.5 MB, free: 10.49 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005478/0.4078, allocations: 2.068 MB / 395.6 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002278/0.408, allocations: 209.4 kB / 395.8 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009471/0.409, allocations: 268 kB / 396.1 MB, free: 10.01 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02028/0.4293, allocations: 10.07 MB / 406.2 MB, free: 7.074 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001107/0.4294, allocations: 36.97 kB / 406.2 MB, free: 7.074 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00043/0.4299, allocations: 135.8 kB / 406.3 MB, free: 7.074 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003096/0.433, allocations: 1.853 MB / 408.2 MB, free: 6.652 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01844/0.4514, allocations: 8.644 MB / 416.8 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04965/0.5011, allocations: 37.37 MB / 454.2 MB, free: 3.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01773/0.5189, allocations: 6.449 MB / 460.6 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01409/0.533, allocations: 8.572 MB / 469.2 MB, free: 4.762 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.623e-05/0.5331, allocations: 60.67 kB / 469.3 MB, free: 4.699 MB / 366.1 MB Notification: Performance of pre-optimization done (n=150): time 4.869e-06/0.5331, allocations: 0 / 469.3 MB, free: 4.699 MB / 366.1 MB Notification: Performance of matching and sorting (n=166): time 0.07195/0.6051, allocations: 23.74 MB / 493 MB, free: 12.83 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.466e-05/0.6052, allocations: 153.1 kB / 493.2 MB, free: 12.65 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005481/0.6107, allocations: 3.583 MB / 496.8 MB, free: 9.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000485/0.6112, allocations: 58.44 kB / 496.8 MB, free: 9.012 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002329/0.6136, allocations: 2.735 MB / 499.5 MB, free: 6.293 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001045/0.6146, allocations: 0.6429 MB / 0.4885 GB, free: 5.656 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002785/0.6149, allocations: 116 kB / 0.4886 GB, free: 5.543 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003365/0.6152, allocations: 0.5414 MB / 0.4891 GB, free: 4.996 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003252/0.6185, allocations: 2.021 MB / 0.4911 GB, free: 2.969 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006223/0.6247, allocations: 5.418 MB / 0.4964 GB, free: 11.89 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005916/0.6307, allocations: 3.208 MB / 0.4995 GB, free: 8.789 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001117/0.6308, allocations: 36 kB / 0.4995 GB, free: 8.754 MB / 414.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01871/0.6495, allocations: 8.306 MB / 0.5076 GB, free: 1.176 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/0.6497, allocations: 57.86 kB / 0.5077 GB, free: 1.121 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002045/0.6499, allocations: 130.4 kB / 0.5078 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004419/0.6543, allocations: 1.308 MB / 0.5091 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004979/0.6593, allocations: 1.281 MB / 0.5104 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009456/0.6688, allocations: 6.272 MB / 0.5165 GB, free: 8.125 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005448/0.6743, allocations: 320.3 kB / 0.5168 GB, free: 7.816 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001263/0.6756, allocations: 344 kB / 0.5171 GB, free: 7.48 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * 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 (681): * Single equations (assignments): 677 * 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.00421/0.6798, allocations: 1.811 MB / 0.5189 GB, free: 5.656 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007568/0.6806, allocations: 304.1 kB / 0.5192 GB, free: 5.355 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007372/0.688, allocations: 3.586 MB / 0.5227 GB, free: 1.762 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.696e-05/0.688, allocations: 20 kB / 0.5227 GB, free: 1.742 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-05/0.6881, allocations: 4 kB / 0.5227 GB, free: 1.738 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.267e-05/0.6881, allocations: 11.97 kB / 0.5227 GB, free: 1.727 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01709/0.7052, allocations: 7.997 MB / 0.5305 GB, free: 9.676 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-05/0.7053, allocations: 1.969 kB / 0.5305 GB, free: 9.676 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001426/0.7067, allocations: 263.6 kB / 0.5308 GB, free: 9.418 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003813/0.7105, allocations: 1.113 MB / 0.5319 GB, free: 8.301 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002998/0.7108, allocations: 31.94 kB / 0.5319 GB, free: 8.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008697/0.7195, allocations: 5.892 MB / 0.5376 GB, free: 2.242 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.7196, allocations: 4.031 kB / 0.5376 GB, free: 2.238 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2563/0.976, allocations: 6.117 MB / 0.5436 GB, free: 163.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00251/0.9785, allocations: 0.6088 MB / 0.5442 GB, free: 163.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006935/0.9792, allocations: 30.14 kB / 0.5442 GB, free: 163.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001611/0.9809, allocations: 113.7 kB / 0.5444 GB, free: 163.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003054/0.9812, allocations: 89.81 kB / 0.5444 GB, free: 163.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001576/0.9813, allocations: 49.67 kB / 0.5445 GB, free: 163.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004743/0.9861, allocations: 2.235 MB / 0.5467 GB, free: 163.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.9861, allocations: 0 / 0.5467 GB, free: 163.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007208/0.9933, allocations: 0.9437 MB / 0.5476 GB, free: 163.4 MB / 446.1 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.01032/1.004, allocations: 6.965 MB / 0.5544 GB, free: 160.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007646/1.011, allocations: 4.945 MB / 0.5592 GB, free: 158.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.241e-06/1.011, allocations: 3.875 kB / 0.5592 GB, free: 158.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002412/1.014, allocations: 1.618 MB / 0.5608 GB, free: 158.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002726/1.017, allocations: 330.2 kB / 0.5611 GB, free: 158.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07562/1.092, allocations: 114 MB / 0.6724 GB, free: 43.39 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002769/1.095, allocations: 2.929 MB / 0.6753 GB, free: 40.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004272/1.099, allocations: 1.742 MB / 0.677 GB, free: 38.68 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001945/1.101, allocations: 1.597 MB / 0.6785 GB, free: 37.09 MB / 446.1 MB Notification: Performance of SimCode: time 1.533e-06/1.101, allocations: 0 / 0.6785 GB, free: 37.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3192/1.421, allocations: 68.71 MB / 0.7456 GB, free: 145.4 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001965/1.421, allocations: 234.7 kB / 0.7458 GB, free: 145.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.653/5.074, allocations: 0 / 0.7458 GB, free: 145.1 MB / 446.1 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) Environment - environmentSimulation: 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