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.001501/0.001507, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.156/2.156, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001093/0.001093, allocations: 86.92 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.489e-05/2.501e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3693/0.3693, allocations: 47.56 MB / 362.4 MB, free: 45.76 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2335/0.6029, allocations: 98.94 MB / 461.4 MB, free: 3.242 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005046/0.6034, allocations: 90.64 kB / 461.5 MB, free: 3.156 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6695/1.273, allocations: 74.06 MB / 0.523 GB, free: 96.73 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.154e-06/1.273, allocations: 3.938 kB / 0.523 GB, free: 96.73 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.000207/1.273, allocations: 70.03 kB / 0.523 GB, free: 96.72 MB / 395.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.01288/1.286, allocations: 3.49 MB / 0.5265 GB, free: 95.15 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/1.286, allocations: 7.656 kB / 0.5265 GB, free: 95.15 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01685/1.303, allocations: 2.285 MB / 0.5287 GB, free: 94.89 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0148/1.318, allocations: 3.915 MB / 0.5325 GB, free: 94.37 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002574/1.318, allocations: 121.3 kB / 0.5326 GB, free: 94.37 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001909/1.32, allocations: 217.5 kB / 0.5328 GB, free: 94.36 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01331/1.333, allocations: 5.618 MB / 0.5383 GB, free: 93.6 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02079/1.354, allocations: 8.58 MB / 0.5467 GB, free: 88.81 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002051/1.355, allocations: 52.59 kB / 0.5468 GB, free: 88.78 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001382/1.356, allocations: 34.72 kB / 0.5468 GB, free: 88.78 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002448/1.358, allocations: 1 MB / 0.5478 GB, free: 88.6 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06017/1.419, allocations: 43.87 MB / 0.5906 GB, free: 46.79 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005043/1.424, allocations: 2.784 MB / 0.5933 GB, free: 43.86 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003011/1.427, allocations: 1.655 MB / 0.5949 GB, free: 42.19 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001007/1.428, allocations: 0.8673 MB / 0.5958 GB, free: 41.19 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.125e-05/1.428, allocations: 63.27 kB / 0.5958 GB, free: 41.12 MB / 395.1 MB Notification: Performance of pre-optimization done (n=157): time 4.709e-06/1.428, allocations: 0 / 0.5958 GB, free: 41.12 MB / 395.1 MB Notification: Performance of matching and sorting (n=173): time 0.0549/1.483, allocations: 15.85 MB / 0.6113 GB, free: 25.16 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.496e-05/1.483, allocations: 145.8 kB / 0.6115 GB, free: 24.99 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004858/1.488, allocations: 2.623 MB / 0.614 GB, free: 22.36 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004382/1.488, allocations: 29.7 kB / 0.6141 GB, free: 22.32 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001942/1.49, allocations: 2.775 MB / 0.6168 GB, free: 19.5 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009775/1.491, allocations: 0.6516 MB / 0.6174 GB, free: 18.84 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000513/1.492, allocations: 0 / 0.6174 GB, free: 18.84 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0003502/1.492, allocations: 0.5546 MB / 0.6179 GB, free: 18.28 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003896/1.496, allocations: 1.819 MB / 0.6197 GB, free: 16.45 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006234/1.502, allocations: 5.322 MB / 0.6249 GB, free: 9.352 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006416/1.509, allocations: 3.072 MB / 0.6279 GB, free: 6.281 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001018/1.509, allocations: 36 kB / 0.628 GB, free: 6.246 MB / 395.1 MB Notification: Performance of matching and sorting (n=753) (initialization): time 0.02248/1.531, allocations: 7.362 MB / 0.6351 GB, free: 14.88 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001096/1.531, allocations: 60 kB / 0.6352 GB, free: 14.82 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001927/1.532, allocations: 124 kB / 0.6353 GB, free: 14.7 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007529/1.539, allocations: 1.293 MB / 0.6366 GB, free: 13.4 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008373/1.548, allocations: 1.326 MB / 0.6379 GB, free: 12.07 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01528/1.563, allocations: 5.89 MB / 0.6436 GB, free: 6.07 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006814/1.57, allocations: 239.5 kB / 0.6439 GB, free: 5.836 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00148/1.571, allocations: 352 kB / 0.6442 GB, free: 5.492 MB / 411.1 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.001476/1.573, allocations: 420.2 kB / 0.6446 GB, free: 5.074 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0129/1.586, allocations: 3.522 MB / 0.648 GB, free: 1.543 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001015/1.587, allocations: 284.3 kB / 0.6483 GB, free: 1.262 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2938/1.881, allocations: 3.201 MB / 0.6514 GB, free: 97.54 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.732e-05/1.881, allocations: 19.66 kB / 0.6514 GB, free: 97.54 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.288e-05/1.881, allocations: 5.125 kB / 0.6514 GB, free: 97.54 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.855e-05/1.881, allocations: 11.69 kB / 0.6515 GB, free: 97.53 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02477/1.906, allocations: 7.082 MB / 0.6584 GB, free: 96.96 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.526e-05/1.906, allocations: 1.531 kB / 0.6584 GB, free: 96.96 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002438/1.908, allocations: 248.8 kB / 0.6586 GB, free: 96.96 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006904/1.915, allocations: 1.101 MB / 0.6597 GB, free: 96.96 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004078/1.916, allocations: 11.48 kB / 0.6597 GB, free: 96.96 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01345/1.929, allocations: 5.455 MB / 0.665 GB, free: 95.7 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.338e-06/1.929, allocations: 0.6875 kB / 0.665 GB, free: 95.7 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01645/1.946, allocations: 5.646 MB / 0.6705 GB, free: 95.14 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00207/1.948, allocations: 0.5538 MB / 0.6711 GB, free: 94.96 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007876/1.948, allocations: 5.828 kB / 0.6711 GB, free: 94.96 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002827/1.951, allocations: 79.84 kB / 0.6712 GB, free: 94.96 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005561/1.952, allocations: 94.64 kB / 0.6713 GB, free: 94.95 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001941/1.952, allocations: 48.05 kB / 0.6713 GB, free: 94.94 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.004031/1.956, allocations: 1.712 MB / 0.673 GB, free: 94.29 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.202e-06/1.956, allocations: 3.406 kB / 0.673 GB, free: 94.29 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.006679/1.963, allocations: 0.7975 MB / 0.6738 GB, free: 94.29 MB / 411.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 () * 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.01604/1.979, allocations: 6.448 MB / 0.6801 GB, free: 91.64 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0102/1.989, allocations: 4.488 MB / 0.6844 GB, free: 90.34 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/1.989, allocations: 3.906 kB / 0.6844 GB, free: 90.34 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003572/1.993, allocations: 1.487 MB / 0.6859 GB, free: 89.73 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002465/1.995, allocations: 259.3 kB / 0.6861 GB, free: 89.61 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02728/2.023, allocations: 8.144 MB / 0.6941 GB, free: 86.88 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005278/2.028, allocations: 2.932 MB / 0.697 GB, free: 85.72 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00361/2.032, allocations: 1.648 MB / 0.6986 GB, free: 84.42 MB / 411.1 MB Notification: Performance of SimCode: time 1.744e-06/2.032, allocations: 0 / 0.6986 GB, free: 84.42 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.061/6.093, allocations: 82.91 MB / 0.7795 GB, free: 12.1 MB / 411.1 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