Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.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.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_WhyArrows",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.001266/0.001266, allocations: 181 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.515/1.515, allocations: 205.4 MB / 223.1 MB, free: 9.039 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009135/0.0009133, allocations: 101 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002633/0.0002633, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2197/0.22, allocations: 47.56 MB / 375.9 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08277/0.3028, allocations: 75.59 MB / 451.5 MB, free: 5.074 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001937/0.3031, allocations: 67.95 kB / 451.6 MB, free: 5.008 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008759/0.3118, allocations: 3.445 MB / 455 MB, free: 1.551 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3119, allocations: 0 / 455 MB, free: 1.551 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.33e-05/0.3119, allocations: 4 kB / 455 MB, free: 1.547 MB / 330.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.0006157/0.3125, allocations: 475.2 kB / 455.5 MB, free: 1.035 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.3126, allocations: 8.031 kB / 455.5 MB, free: 1.027 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.979e-05/0.3127, allocations: 58.55 kB / 455.5 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.508e-05/0.3127, allocations: 27.72 kB / 455.6 MB, free: 0.9336 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001546/0.3129, allocations: 202.4 kB / 455.8 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.3129, allocations: 20.56 kB / 455.8 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.255e-05/0.313, allocations: 27.95 kB / 455.8 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003921/0.3134, allocations: 228.3 kB / 456 MB, free: 420 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.3134, allocations: 0 / 456 MB, free: 420 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.129e-05/0.3134, allocations: 8 kB / 456 MB, free: 412 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.3134, allocations: 8 kB / 456 MB, free: 404 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002209/0.3137, allocations: 131.9 kB / 456.2 MB, free: 272 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001092/0.3148, allocations: 0.8636 MB / 457 MB, free: 15.34 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002154/0.315, allocations: 163.8 kB / 457.2 MB, free: 15.15 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.652e-05/0.315, allocations: 4 kB / 457.2 MB, free: 15.15 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.204e-05/0.3151, allocations: 30.56 kB / 457.2 MB, free: 15.11 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 2.064e-06/0.3151, allocations: 0 / 457.2 MB, free: 15.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003656/0.3154, allocations: 169.7 kB / 457.4 MB, free: 14.94 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.976e-05/0.3155, allocations: 114.7 kB / 457.5 MB, free: 14.8 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000174/0.3157, allocations: 177.4 kB / 457.7 MB, free: 14.62 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/0.3157, allocations: 29.7 kB / 457.7 MB, free: 14.59 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.3158, allocations: 152 kB / 457.9 MB, free: 14.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.356e-05/0.3159, allocations: 67 kB / 457.9 MB, free: 14.37 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.307e-06/0.3159, allocations: 8 kB / 457.9 MB, free: 14.36 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.316, allocations: 326.8 kB / 458.3 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.794e-05/0.3161, allocations: 48.53 kB / 458.3 MB, free: 13.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001397/0.3163, allocations: 154.8 kB / 458.4 MB, free: 13.78 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001113/0.3164, allocations: 72.56 kB / 458.5 MB, free: 13.71 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3164, allocations: 0 / 458.5 MB, free: 13.71 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003266/0.3167, allocations: 237.1 kB / 458.8 MB, free: 13.47 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.3168, allocations: 11.94 kB / 458.8 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.3168, allocations: 7.938 kB / 458.8 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.3168, allocations: 4.438 kB / 458.8 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002055/0.317, allocations: 67.86 kB / 458.8 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.317, allocations: 11.94 kB / 458.9 MB, free: 13.37 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000157/0.3172, allocations: 32.5 kB / 458.9 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.875e-05/0.3172, allocations: 8 kB / 458.9 MB, free: 13.33 MB / 346.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.0001224/0.3173, allocations: 141.7 kB / 459 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.958e-05/0.3174, allocations: 19.8 kB / 459.1 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.987e-05/0.3175, allocations: 21.41 kB / 459.1 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.3175, allocations: 4 kB / 459.1 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.3175, allocations: 3.953 kB / 459.1 MB, free: 13.13 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.3175, allocations: 11.92 kB / 459.1 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004892/0.318, allocations: 420.9 kB / 459.5 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.318, allocations: 0 / 459.5 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001852/0.3182, allocations: 35.98 kB / 459.5 MB, free: 12.61 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/0.3182, allocations: 3.953 kB / 459.5 MB, free: 12.61 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.3182, allocations: 8 kB / 459.5 MB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.3183, allocations: 4.094 kB / 459.6 MB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.3183, allocations: 7.938 kB / 459.6 MB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000359/0.3186, allocations: 416.3 kB / 460 MB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.925e-05/0.3187, allocations: 92.86 kB / 460.1 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.702e-05/0.3187, allocations: 8 kB / 460.1 MB, free: 12.01 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.3189, allocations: 4 kB / 460.1 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.435e-05/0.3189, allocations: 23.92 kB / 460.1 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.3189, allocations: 4 kB / 460.1 MB, free: 11.98 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001159/0.319, allocations: 144.3 kB / 460.2 MB, free: 11.84 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3191, allocations: 4 kB / 460.2 MB, free: 11.83 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003442/0.3194, allocations: 55.84 kB / 460.3 MB, free: 11.78 MB / 346.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.0007217/0.3201, allocations: 1.232 MB / 461.5 MB, free: 10.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002423/0.3204, allocations: 134 kB / 461.7 MB, free: 10.37 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.3204, allocations: 4.062 kB / 461.7 MB, free: 10.36 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.166e-05/0.3205, allocations: 55.86 kB / 461.7 MB, free: 10.31 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000334/0.3208, allocations: 24.55 kB / 461.7 MB, free: 10.29 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002627/0.3235, allocations: 3.699 MB / 465.4 MB, free: 6.461 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002888/0.3238, allocations: 0.7398 MB / 466.2 MB, free: 5.695 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000102/0.3239, allocations: 17.95 kB / 466.2 MB, free: 5.676 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.92e-05/0.324, allocations: 63.34 kB / 466.3 MB, free: 5.613 MB / 346.7 MB Notification: Performance of SimCode: time 2.584e-06/0.324, allocations: 0 / 466.3 MB, free: 5.613 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01373/0.3377, allocations: 3.318 MB / 469.6 MB, free: 2.332 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002474/0.338, allocations: 186.5 kB / 469.8 MB, free: 2.086 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.558/1.896, allocations: 3.938 kB / 469.8 MB, free: 2.082 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_WhyArrows_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_WhyArrows.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat does not exist to compare? outputFormat=mat