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.001601/0.001601, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.907/1.907, allocations: 205.3 MB / 214.4 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008572/0.0008568, allocations: 86.22 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.98e-05/1.983e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1051, allocations: 47.59 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3754/0.4805, allocations: 99.18 MB / 462.4 MB, free: 12.47 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/0.4808, allocations: 94.81 kB / 462.5 MB, free: 12.42 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.197/0.6778, allocations: 74.06 MB / 0.5239 GB, free: 7.652 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.6779, allocations: 0 / 0.5239 GB, free: 7.652 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001461/0.678, allocations: 72 kB / 0.524 GB, free: 7.582 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.009075/0.6871, allocations: 3.495 MB / 0.5274 GB, free: 4.027 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.6872, allocations: 8.031 kB / 0.5274 GB, free: 4.02 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01004/0.6972, allocations: 2.272 MB / 0.5296 GB, free: 1.738 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2602/0.9575, allocations: 3.922 MB / 0.5335 GB, free: 95.49 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000231/0.9577, allocations: 119.9 kB / 0.5336 GB, free: 95.49 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001605/0.9593, allocations: 221.1 kB / 0.5338 GB, free: 95.49 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01069/0.9701, allocations: 5.617 MB / 0.5393 GB, free: 95.47 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01635/0.9864, allocations: 8.577 MB / 0.5477 GB, free: 92.91 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000155/0.9866, allocations: 53.36 kB / 0.5477 GB, free: 92.91 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005003/0.9871, allocations: 30.69 kB / 0.5477 GB, free: 92.91 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001687/0.9888, allocations: 0.9972 MB / 0.5487 GB, free: 92.9 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03865/1.027, allocations: 43.87 MB / 0.5916 GB, free: 63.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003359/1.031, allocations: 2.777 MB / 0.5943 GB, free: 61.79 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001969/1.033, allocations: 1.659 MB / 0.5959 GB, free: 61.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007312/1.034, allocations: 0.8717 MB / 0.5967 GB, free: 60.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.82e-05/1.034, allocations: 44.66 kB / 0.5968 GB, free: 60.25 MB / 410.7 MB Notification: Performance of pre-optimization done (n=157): time 3.857e-06/1.034, allocations: 0 / 0.5968 GB, free: 60.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=173): time 0.0309/1.065, allocations: 15.86 MB / 0.6123 GB, free: 54.54 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/1.065, allocations: 144.2 kB / 0.6124 GB, free: 54.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003366/1.068, allocations: 2.624 MB / 0.615 GB, free: 53.34 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002633/1.068, allocations: 28.67 kB / 0.615 GB, free: 53.31 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00122/1.07, allocations: 2.775 MB / 0.6177 GB, free: 51.13 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00051/1.07, allocations: 0.6508 MB / 0.6183 GB, free: 50.66 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001904/1.07, allocations: 3.938 kB / 0.6183 GB, free: 50.65 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002563/1.071, allocations: 0.546 MB / 0.6189 GB, free: 50.24 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002086/1.073, allocations: 1.818 MB / 0.6207 GB, free: 49.61 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003433/1.076, allocations: 5.327 MB / 0.6259 GB, free: 43.48 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003286/1.079, allocations: 3.069 MB / 0.6289 GB, free: 40.88 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.162e-05/1.079, allocations: 36 kB / 0.6289 GB, free: 40.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=753) (initialization): time 0.01201/1.091, allocations: 7.421 MB / 0.6361 GB, free: 34.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.862e-05/1.092, allocations: 60 kB / 0.6362 GB, free: 34.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001003/1.092, allocations: 124 kB / 0.6363 GB, free: 34.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003643/1.095, allocations: 1.295 MB / 0.6376 GB, free: 33.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004185/1.1, allocations: 1.318 MB / 0.6389 GB, free: 32.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008589/1.108, allocations: 5.893 MB / 0.6446 GB, free: 27.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00505/1.113, allocations: 247 kB / 0.6449 GB, free: 27.08 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009509/1.114, allocations: 355.8 kB / 0.6452 GB, free: 26.73 MB / 410.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.0008465/1.115, allocations: 416.9 kB / 0.6456 GB, free: 26.32 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00625/1.121, allocations: 3.519 MB / 0.649 GB, free: 23.51 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005021/1.122, allocations: 276.4 kB / 0.6493 GB, free: 23.24 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006105/1.128, allocations: 3.218 MB / 0.6524 GB, free: 20.79 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.486e-05/1.128, allocations: 20 kB / 0.6525 GB, free: 20.77 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/1.128, allocations: 4 kB / 0.6525 GB, free: 20.76 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.7e-05/1.128, allocations: 7.078 kB / 0.6525 GB, free: 20.76 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01202/1.14, allocations: 7.104 MB / 0.6594 GB, free: 15.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.808e-06/1.14, allocations: 0 / 0.6594 GB, free: 15.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/1.141, allocations: 247.7 kB / 0.6596 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003395/1.145, allocations: 1.106 MB / 0.6607 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001609/1.145, allocations: 4 kB / 0.6607 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006604/1.151, allocations: 5.456 MB / 0.666 GB, free: 9.375 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/1.152, allocations: 4.031 kB / 0.6661 GB, free: 9.371 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008333/1.16, allocations: 5.641 MB / 0.6716 GB, free: 3.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001282/1.161, allocations: 0.5519 MB / 0.6721 GB, free: 3.105 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006262/1.162, allocations: 3.938 kB / 0.6721 GB, free: 3.102 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001729/1.164, allocations: 79.86 kB / 0.6722 GB, free: 3.023 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002334/1.164, allocations: 89.19 kB / 0.6723 GB, free: 2.938 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001272/1.164, allocations: 51.98 kB / 0.6723 GB, free: 2.887 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003082/1.167, allocations: 1.716 MB / 0.674 GB, free: 1.172 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.2e-07/1.167, allocations: 0 / 0.674 GB, free: 1.172 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005258/1.172, allocations: 0.7946 MB / 0.6748 GB, free: 392 kB / 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 () * 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.01058/1.183, allocations: 6.456 MB / 0.6811 GB, free: 9.887 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007818/1.191, allocations: 4.479 MB / 0.6854 GB, free: 5.422 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/1.191, allocations: 4.125 kB / 0.6854 GB, free: 5.418 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002209/1.193, allocations: 1.489 MB / 0.6869 GB, free: 3.93 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001825/1.195, allocations: 253.2 kB / 0.6871 GB, free: 3.688 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2519/1.447, allocations: 7.759 MB / 0.6947 GB, free: 100.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003617/1.451, allocations: 2.934 MB / 0.6976 GB, free: 99.31 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00533/1.456, allocations: 1.783 MB / 0.6993 GB, free: 99.27 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002054/1.458, allocations: 1.602 MB / 0.7009 GB, free: 99.27 MB / 426.7 MB Notification: Performance of SimCode: time 1.072e-06/1.458, allocations: 0 / 0.7009 GB, free: 99.27 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1405/1.598, allocations: 62.97 MB / 0.7624 GB, free: 79.41 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002112/1.599, allocations: 170.3 kB / 0.7626 GB, free: 79.22 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.152/5.751, allocations: 4 kB / 0.7626 GB, free: 79.21 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