Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.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.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00121/0.00121, allocations: 197.7 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, allocations: 227.2 MB / 245 MB, free: 7.586 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009225/0.0009223, allocations: 109 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002436/0.0002436, allocations: 12 kB / 358 MB, free: 9.441 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2198/0.2201, allocations: 51.47 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1023/0.3224, allocations: 77.53 MB / 487 MB, free: 13.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002571/0.3227, allocations: 63.95 kB / 487.1 MB, free: 13.03 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009506/0.3323, allocations: 3.575 MB / 490.7 MB, free: 9.449 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3323, allocations: 0 / 490.7 MB, free: 9.449 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.858e-06/0.3323, allocations: 4 kB / 490.7 MB, free: 9.445 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0006194/0.333, allocations: 479.1 kB / 491.1 MB, free: 8.926 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.333, allocations: 8.031 kB / 491.1 MB, free: 8.918 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.972e-05/0.3331, allocations: 58.55 kB / 491.2 MB, free: 8.852 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.662e-05/0.3331, allocations: 23.72 kB / 491.2 MB, free: 8.828 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/0.3333, allocations: 197.7 kB / 491.4 MB, free: 8.598 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.3333, allocations: 12.56 kB / 491.4 MB, free: 8.586 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.644e-05/0.3334, allocations: 27.95 kB / 491.5 MB, free: 8.559 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003872/0.3338, allocations: 240.2 kB / 491.7 MB, free: 8.305 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.3338, allocations: 0 / 491.7 MB, free: 8.305 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.058e-05/0.3338, allocations: 8 kB / 491.7 MB, free: 8.297 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.3338, allocations: 4 kB / 491.7 MB, free: 8.293 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000224/0.3341, allocations: 135.8 kB / 491.8 MB, free: 8.16 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001169/0.3352, allocations: 0.8752 MB / 492.7 MB, free: 7.223 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002236/0.3355, allocations: 148.7 kB / 492.9 MB, free: 7.051 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.345e-05/0.3355, allocations: 4 kB / 492.9 MB, free: 7.047 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/0.3355, allocations: 38.56 kB / 492.9 MB, free: 7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.262e-06/0.3355, allocations: 0 / 492.9 MB, free: 7 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003709/0.3359, allocations: 173.6 kB / 493.1 MB, free: 6.824 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.097e-05/0.336, allocations: 106.8 kB / 493.2 MB, free: 6.695 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001903/0.3362, allocations: 182.1 kB / 493.3 MB, free: 6.508 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.261e-05/0.3362, allocations: 29.7 kB / 493.4 MB, free: 6.473 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.3363, allocations: 156 kB / 493.5 MB, free: 6.316 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.257e-05/0.3364, allocations: 74.98 kB / 493.6 MB, free: 6.242 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.358e-06/0.3364, allocations: 4 kB / 493.6 MB, free: 6.238 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.3366, allocations: 326.8 kB / 493.9 MB, free: 5.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.752e-05/0.3367, allocations: 48.53 kB / 494 MB, free: 5.859 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/0.3368, allocations: 159.3 kB / 494.1 MB, free: 5.656 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001252/0.337, allocations: 68.62 kB / 494.2 MB, free: 5.59 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.337, allocations: 3.938 kB / 494.2 MB, free: 5.586 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003566/0.3373, allocations: 245.4 kB / 494.4 MB, free: 5.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.3374, allocations: 8 kB / 494.4 MB, free: 5.332 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.3374, allocations: 4 kB / 494.4 MB, free: 5.328 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.3374, allocations: 4 kB / 494.5 MB, free: 5.324 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002428/0.3376, allocations: 63.86 kB / 494.5 MB, free: 5.262 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.538e-05/0.3377, allocations: 7.938 kB / 494.5 MB, free: 5.254 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001389/0.3378, allocations: 35.69 kB / 494.6 MB, free: 5.219 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.856e-05/0.3378, allocations: 8 kB / 494.6 MB, free: 5.211 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001534/0.338, allocations: 145.8 kB / 494.7 MB, free: 5.059 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.822e-05/0.3381, allocations: 19.8 kB / 494.7 MB, free: 5.039 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.481e-05/0.3381, allocations: 21.41 kB / 494.7 MB, free: 5.02 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.3382, allocations: 4 kB / 494.8 MB, free: 5.016 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.3382, allocations: 3.953 kB / 494.8 MB, free: 5.012 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.3382, allocations: 3.984 kB / 494.8 MB, free: 5.008 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005382/0.3387, allocations: 417 kB / 495.2 MB, free: 4.535 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.3387, allocations: 0 / 495.2 MB, free: 4.535 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002127/0.339, allocations: 43.92 kB / 495.2 MB, free: 4.492 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.656e-06/0.339, allocations: 3.953 kB / 495.2 MB, free: 4.488 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.339, allocations: 7.938 kB / 495.2 MB, free: 4.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.339, allocations: 3.938 kB / 495.2 MB, free: 4.477 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.339, allocations: 4 kB / 495.2 MB, free: 4.473 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004306/0.3394, allocations: 427.4 kB / 495.6 MB, free: 4.004 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.767e-05/0.3395, allocations: 96.86 kB / 495.7 MB, free: 3.891 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.912e-05/0.3396, allocations: 8 kB / 495.7 MB, free: 3.883 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001326/0.3397, allocations: 8 kB / 495.8 MB, free: 3.875 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.005e-05/0.3397, allocations: 15.98 kB / 495.8 MB, free: 3.859 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.3398, allocations: 4 kB / 495.8 MB, free: 3.855 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001214/0.3399, allocations: 139.2 kB / 495.9 MB, free: 3.719 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3399, allocations: 0 / 495.9 MB, free: 3.719 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003477/0.3402, allocations: 55.84 kB / 496 MB, free: 3.664 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (inertia2.s,inertia2.v,mass1.s,mass1.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 (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008209/0.3411, allocations: 1.24 MB / 497.2 MB, free: 2.375 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000249/0.3413, allocations: 139.8 kB / 497.3 MB, free: 2.238 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3413, allocations: 0 / 497.3 MB, free: 2.238 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.248e-05/0.3414, allocations: 51.92 kB / 497.4 MB, free: 2.188 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003911/0.3418, allocations: 27.47 kB / 497.4 MB, free: 2.164 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002956/0.3448, allocations: 3.686 MB / 0.4894 GB, free: 14.35 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003468/0.3451, allocations: 0.7398 MB / 0.4901 GB, free: 13.58 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.478e-05/0.3452, allocations: 21.95 kB / 0.4901 GB, free: 13.56 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.449e-05/0.3453, allocations: 59.41 kB / 0.4902 GB, free: 13.5 MB / 378.7 MB Notification: Performance of SimCode: time 6.61e-07/0.3454, allocations: 0 / 0.4902 GB, free: 13.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01488/0.3602, allocations: 3.306 MB / 0.4934 GB, free: 10.33 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002171/0.3605, allocations: 178.2 kB / 0.4936 GB, free: 10.09 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.657/2.017, allocations: 0 / 0.4936 GB, free: 10.09 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat does not exist to compare? outputFormat=mat