Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00166/0.00166, allocations: 198.4 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001002/0.001002, allocations: 98.48 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.851e-05/1.848e-05, allocations: 4 kB / 343.8 MB, free: 8.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.118, allocations: 51.47 MB / 395.3 MB, free: 4.684 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4386/0.5566, allocations: 101.2 MB / 496.4 MB, free: 7.945 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002956/0.557, allocations: 91.56 kB / 496.5 MB, free: 7.898 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2099/0.7669, allocations: 75.79 MB / 0.5589 GB, free: 0.8398 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.088e-06/0.767, allocations: 4 kB / 0.5589 GB, free: 0.8359 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001665/0.7671, allocations: 68 kB / 0.559 GB, free: 0.7695 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.01162/0.7788, allocations: 3.515 MB / 0.5624 GB, free: 13.2 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.772e-05/0.7788, allocations: 11.97 kB / 0.5624 GB, free: 13.19 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0111/0.79, allocations: 2.266 MB / 0.5646 GB, free: 10.91 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01002/0.8, allocations: 3.28 MB / 0.5678 GB, free: 7.59 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002409/0.8003, allocations: 116 kB / 0.5679 GB, free: 7.477 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001634/0.8019, allocations: 212 kB / 0.5682 GB, free: 7.27 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01161/0.8136, allocations: 5.613 MB / 0.5736 GB, free: 1.652 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3079/1.121, allocations: 8.576 MB / 0.582 GB, free: 79.49 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001394/1.122, allocations: 56.86 kB / 0.5821 GB, free: 79.49 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004869/1.122, allocations: 32.59 kB / 0.5821 GB, free: 79.49 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001517/1.124, allocations: 0.9952 MB / 0.5831 GB, free: 79.48 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04273/1.166, allocations: 43.84 MB / 0.6259 GB, free: 52.36 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004169/1.171, allocations: 2.779 MB / 0.6286 GB, free: 51.7 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002158/1.173, allocations: 1.656 MB / 0.6302 GB, free: 51.67 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007159/1.174, allocations: 0.8701 MB / 0.6311 GB, free: 50.91 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.355e-05/1.174, allocations: 55.72 kB / 0.6311 GB, free: 50.87 MB / 442.7 MB Notification: Performance of pre-optimization done (n=157): time 5.551e-06/1.174, allocations: 0 / 0.6311 GB, free: 50.87 MB / 442.7 MB Notification: Performance of matching and sorting (n=173): time 0.037/1.211, allocations: 15.8 MB / 0.6465 GB, free: 45.42 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.4e-05/1.211, allocations: 145.2 kB / 0.6467 GB, free: 45.27 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005035/1.216, allocations: 2.609 MB / 0.6492 GB, free: 44.29 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004917/1.216, allocations: 26.89 kB / 0.6492 GB, free: 44.26 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001933/1.218, allocations: 2.779 MB / 0.652 GB, free: 42.18 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00105/1.219, allocations: 0.645 MB / 0.6526 GB, free: 41.71 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003471/1.22, allocations: 0 / 0.6526 GB, free: 41.71 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000324/1.22, allocations: 0.5513 MB / 0.6531 GB, free: 41.3 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003/1.223, allocations: 1.825 MB / 0.6549 GB, free: 40.66 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004812/1.228, allocations: 5.324 MB / 0.6601 GB, free: 35.22 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00483/1.233, allocations: 3.079 MB / 0.6631 GB, free: 34.07 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.728e-05/1.233, allocations: 36.53 kB / 0.6632 GB, free: 34.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=753) (initialization): time 0.01581/1.249, allocations: 7.41 MB / 0.6704 GB, free: 31.72 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001315/1.249, allocations: 62.31 kB / 0.6704 GB, free: 31.72 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001568/1.249, allocations: 125.2 kB / 0.6706 GB, free: 31.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004159/1.253, allocations: 1.292 MB / 0.6718 GB, free: 31.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005139/1.258, allocations: 1.331 MB / 0.6731 GB, free: 31.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008566/1.267, allocations: 5.883 MB / 0.6789 GB, free: 28.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005488/1.273, allocations: 244.4 kB / 0.6791 GB, free: 28.58 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001545/1.274, allocations: 351.6 kB / 0.6794 GB, free: 28.54 MB / 442.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.002252/1.276, allocations: 426.3 kB / 0.6798 GB, free: 28.18 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007664/1.284, allocations: 3.521 MB / 0.6833 GB, free: 27.12 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001017/1.285, allocations: 275 kB / 0.6835 GB, free: 26.98 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007175/1.292, allocations: 3.204 MB / 0.6867 GB, free: 26 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.447e-05/1.292, allocations: 19.77 kB / 0.6867 GB, free: 26 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.242e-05/1.293, allocations: 11.75 kB / 0.6867 GB, free: 26 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.919e-05/1.293, allocations: 3.609 kB / 0.6867 GB, free: 26 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01818/1.311, allocations: 7.094 MB / 0.6936 GB, free: 23.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.046e-05/1.311, allocations: 4 kB / 0.6936 GB, free: 23.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001377/1.312, allocations: 245.1 kB / 0.6939 GB, free: 23.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003578/1.316, allocations: 1.106 MB / 0.695 GB, free: 23.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003147/1.316, allocations: 7.359 kB / 0.695 GB, free: 23.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007084/1.323, allocations: 5.45 MB / 0.7003 GB, free: 20.67 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.461e-06/1.323, allocations: 0 / 0.7003 GB, free: 20.67 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009239/1.333, allocations: 5.658 MB / 0.7058 GB, free: 18.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/1.334, allocations: 318.7 kB / 0.7061 GB, free: 18.24 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008538/1.334, allocations: 3.938 kB / 0.7061 GB, free: 18.24 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002006/1.337, allocations: 84 kB / 0.7062 GB, free: 18.23 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003536/1.337, allocations: 93.89 kB / 0.7063 GB, free: 18.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001933/1.337, allocations: 47.56 kB / 0.7063 GB, free: 18.21 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003472/1.341, allocations: 1.702 MB / 0.708 GB, free: 16.77 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.341, allocations: 0 / 0.708 GB, free: 16.77 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006506/1.347, allocations: 0.7988 MB / 0.7088 GB, free: 15.97 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 (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.358, allocations: 6.461 MB / 0.7151 GB, free: 10.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008853/1.367, allocations: 4.476 MB / 0.7195 GB, free: 6.367 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/1.367, allocations: 4 kB / 0.7195 GB, free: 6.363 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002154/1.369, allocations: 1.495 MB / 0.7209 GB, free: 5.008 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00216/1.371, allocations: 261.8 kB / 0.7212 GB, free: 4.789 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02222/1.393, allocations: 7.747 MB / 0.7287 GB, free: 14.18 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004502/1.398, allocations: 2.922 MB / 0.7316 GB, free: 11.94 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.006015/1.404, allocations: 1.779 MB / 0.7333 GB, free: 10.84 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003634/1.408, allocations: 1.599 MB / 0.7349 GB, free: 9.359 MB / 458.7 MB Notification: Performance of SimCode: time 1.774e-06/1.408, allocations: 0 / 0.7349 GB, free: 9.359 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3416/1.749, allocations: 62.89 MB / 0.7963 GB, free: 83.96 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001623/1.749, allocations: 165.8 kB / 0.7965 GB, free: 83.78 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.11/5.859, allocations: 0 / 0.7965 GB, free: 83.78 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat