Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 221.3 MB / 235.5 MB, free: 2.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000962/0.0009621, allocations: 87.81 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.969e-05/2.981e-05, allocations: 0 / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1141, allocations: 50.4 MB / 394.3 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3982/0.5123, allocations: 101.2 MB / 495.5 MB, free: 2.215 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002551/0.5126, allocations: 83.95 kB / 495.6 MB, free: 2.133 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5029/1.016, allocations: 76.6 MB / 0.5588 GB, free: 99.16 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.603e-06/1.016, allocations: 0 / 0.5588 GB, free: 99.16 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001634/1.016, allocations: 69.31 kB / 0.5589 GB, free: 99.16 MB / 426.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.01086/1.027, allocations: 3.487 MB / 0.5623 GB, free: 97.66 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.945e-05/1.027, allocations: 13.56 kB / 0.5623 GB, free: 97.66 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002031/1.029, allocations: 0.682 MB / 0.563 GB, free: 97.59 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01123/1.04, allocations: 2.269 MB / 0.5652 GB, free: 97.35 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01127/1.051, allocations: 3.783 MB / 0.5689 GB, free: 96.86 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000339/1.052, allocations: 278.9 kB / 0.5691 GB, free: 96.85 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001848/1.054, allocations: 368.8 kB / 0.5695 GB, free: 96.85 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02275/1.076, allocations: 10.39 MB / 0.5796 GB, free: 94.27 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001456/1.077, allocations: 56 kB / 0.5797 GB, free: 94.26 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005657/1.077, allocations: 184 kB / 0.5799 GB, free: 94.26 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001303/1.078, allocations: 0.9987 MB / 0.5808 GB, free: 94.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0175/1.096, allocations: 8.574 MB / 0.5892 GB, free: 92.93 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04947/1.145, allocations: 44.71 MB / 0.6329 GB, free: 59.08 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01027/1.156, allocations: 3.854 MB / 0.6366 GB, free: 57.38 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002344/1.158, allocations: 1.772 MB / 0.6384 GB, free: 56.58 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01063/1.169, allocations: 7.633 MB / 0.6458 GB, free: 49.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.308e-05/1.169, allocations: 47.28 kB / 0.6459 GB, free: 49.74 MB / 426.7 MB Notification: Performance of pre-optimization done (n=150): time 6.162e-06/1.169, allocations: 0 / 0.6459 GB, free: 49.74 MB / 426.7 MB Notification: Performance of matching and sorting (n=166): time 0.0401/1.209, allocations: 14.66 MB / 0.6602 GB, free: 37.44 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.432e-05/1.209, allocations: 149.5 kB / 0.6603 GB, free: 37.26 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004522/1.214, allocations: 3.054 MB / 0.6633 GB, free: 34.21 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003707/1.214, allocations: 45.7 kB / 0.6634 GB, free: 34.16 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001453/1.216, allocations: 2.73 MB / 0.666 GB, free: 31.43 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007742/1.216, allocations: 0.643 MB / 0.6666 GB, free: 30.79 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002342/1.217, allocations: 112 kB / 0.6668 GB, free: 30.68 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003257/1.217, allocations: 0.5375 MB / 0.6673 GB, free: 30.14 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002477/1.219, allocations: 1.862 MB / 0.6691 GB, free: 28.27 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004157/1.224, allocations: 5.258 MB / 0.6742 GB, free: 21.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00364/1.227, allocations: 3.086 MB / 0.6772 GB, free: 18.21 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-05/1.227, allocations: 40 kB / 0.6773 GB, free: 18.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.01427/1.242, allocations: 7.991 MB / 0.6851 GB, free: 10.18 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.62e-05/1.242, allocations: 57.56 kB / 0.6851 GB, free: 10.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001373/1.242, allocations: 120 kB / 0.6853 GB, free: 10.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00399/1.246, allocations: 1.314 MB / 0.6865 GB, free: 8.691 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004559/1.25, allocations: 1.267 MB / 0.6878 GB, free: 7.422 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008113/1.259, allocations: 6.104 MB / 0.6937 GB, free: 1.191 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005264/1.264, allocations: 347.5 kB / 0.6941 GB, free: 0.8516 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001013/1.265, allocations: 343.8 kB / 0.6944 GB, free: 0.5234 MB / 426.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.001054/1.266, allocations: 0.5412 MB / 0.6949 GB, free: 15.98 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009396/1.267, allocations: 304 kB / 0.6952 GB, free: 15.68 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008277/1.275, allocations: 3.319 MB / 0.6985 GB, free: 12.35 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.656e-05/1.275, allocations: 24.41 kB / 0.6985 GB, free: 12.33 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.901e-05/1.275, allocations: 4 kB / 0.6985 GB, free: 12.32 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.507e-05/1.275, allocations: 11.97 kB / 0.6985 GB, free: 12.31 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01908/1.294, allocations: 7.564 MB / 0.7059 GB, free: 4.688 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.659e-05/1.294, allocations: 0 / 0.7059 GB, free: 4.688 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001306/1.296, allocations: 243.6 kB / 0.7061 GB, free: 4.449 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003913/1.3, allocations: 1.113 MB / 0.7072 GB, free: 3.332 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000228/1.3, allocations: 31.98 kB / 0.7072 GB, free: 3.301 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3248/1.625, allocations: 5.746 MB / 0.7128 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/1.625, allocations: 1.594 kB / 0.7128 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01247/1.637, allocations: 5.691 MB / 0.7184 GB, free: 101.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001728/1.639, allocations: 358.1 kB / 0.7187 GB, free: 101 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005057/1.64, allocations: 24.77 kB / 0.7188 GB, free: 101 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001484/1.641, allocations: 104.6 kB / 0.7189 GB, free: 101 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004507/1.642, allocations: 92.58 kB / 0.719 GB, free: 101 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001722/1.642, allocations: 50.91 kB / 0.719 GB, free: 101 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004857/1.647, allocations: 2.093 MB / 0.721 GB, free: 100.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.11e-07/1.647, allocations: 0 / 0.721 GB, free: 100.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006613/1.653, allocations: 0.918 MB / 0.7219 GB, free: 100.9 MB / 442.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.01262/1.666, allocations: 6.52 MB / 0.7283 GB, free: 99.66 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008423/1.674, allocations: 4.648 MB / 0.7329 GB, free: 99.52 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/1.674, allocations: 2.781 kB / 0.7329 GB, free: 99.52 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002254/1.677, allocations: 1.507 MB / 0.7343 GB, free: 99.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002447/1.679, allocations: 331.4 kB / 0.7346 GB, free: 99.38 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02036/1.7, allocations: 7.748 MB / 0.7422 GB, free: 97.22 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003519/1.703, allocations: 2.929 MB / 0.7451 GB, free: 96.05 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004636/1.708, allocations: 1.7 MB / 0.7467 GB, free: 96.02 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002549/1.71, allocations: 1.591 MB / 0.7483 GB, free: 94.75 MB / 442.7 MB Notification: Performance of SimCode: time 1.162e-06/1.71, allocations: 0 / 0.7483 GB, free: 94.75 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1099/1.82, allocations: 67.87 MB / 0.8146 GB, free: 52.55 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000174/1.821, allocations: 196.2 kB / 0.8147 GB, free: 52.33 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.242/6.063, allocations: 4 kB / 0.8147 GB, free: 52.33 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat