Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.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.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_WhyArrows",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.001692/0.001692, allocations: 176.1 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.63/1.63, allocations: 221.5 MB / 230.3 MB, free: 7.562 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.0009669/0.0009669, allocations: 103 kB / 281.2 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.808e-05/1.84e-05, allocations: 0 / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1281, allocations: 50.42 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4042/0.5323, allocations: 75.99 MB / 463.5 MB, free: 2.797 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000317/0.5327, allocations: 67.95 kB / 463.6 MB, free: 2.73 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00987/0.5426, allocations: 3.551 MB / 467.2 MB, free: 15.17 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.5427, allocations: 0 / 467.2 MB, free: 15.17 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.219e-05/0.5427, allocations: 4 kB / 467.2 MB, free: 15.17 MB / 346.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.0006139/0.5433, allocations: 461.5 kB / 467.6 MB, free: 14.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/0.5434, allocations: 14.66 kB / 467.6 MB, free: 14.66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.234e-05/0.5434, allocations: 27.67 kB / 467.7 MB, free: 14.64 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001773/0.5436, allocations: 187.5 kB / 467.8 MB, free: 14.41 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.07e-05/0.5436, allocations: 8 kB / 467.8 MB, free: 14.41 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.316e-05/0.5437, allocations: 16 kB / 467.9 MB, free: 14.39 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002616/0.544, allocations: 113.1 kB / 468 MB, free: 14.28 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003385/0.5443, allocations: 195.2 kB / 468.2 MB, free: 14.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.5443, allocations: 3.906 kB / 468.2 MB, free: 14.06 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.41e-05/0.5444, allocations: 3.984 kB / 468.2 MB, free: 14.06 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.5444, allocations: 15.89 kB / 468.2 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001152/0.5455, allocations: 0.8134 MB / 469 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002127/0.5458, allocations: 139.8 kB / 469.1 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.374e-05/0.5459, allocations: 54.58 kB / 469.2 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.652e-05/0.5459, allocations: 4 kB / 469.2 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/0.5459, allocations: 42.5 kB / 469.2 MB, free: 12.9 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.413e-06/0.546, allocations: 0 / 469.2 MB, free: 12.9 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002954/0.5463, allocations: 117.7 kB / 469.4 MB, free: 12.78 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.837e-05/0.5463, allocations: 106.8 kB / 469.5 MB, free: 12.65 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001453/0.5465, allocations: 146.4 kB / 469.6 MB, free: 12.5 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.5465, allocations: 29.7 kB / 469.6 MB, free: 12.46 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.35e-05/0.5466, allocations: 164.1 kB / 469.8 MB, free: 12.3 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.867e-05/0.5467, allocations: 59.11 kB / 469.8 MB, free: 12.24 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.785e-06/0.5467, allocations: 0 / 469.8 MB, free: 12.24 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.5468, allocations: 334.8 kB / 470.2 MB, free: 11.9 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.223e-05/0.5469, allocations: 44.5 kB / 470.2 MB, free: 11.86 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001386/0.547, allocations: 135.4 kB / 470.3 MB, free: 11.68 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001063/0.5471, allocations: 68.05 kB / 470.4 MB, free: 11.61 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.5472, allocations: 4 kB / 470.4 MB, free: 11.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002925/0.5475, allocations: 205.2 kB / 470.6 MB, free: 11.4 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.5475, allocations: 9.406 kB / 470.6 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.5475, allocations: 4 kB / 470.6 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.5475, allocations: 4 kB / 470.6 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002133/0.5477, allocations: 63.86 kB / 470.7 MB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.474e-05/0.5478, allocations: 7.984 kB / 470.7 MB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.5479, allocations: 28.12 kB / 470.7 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.5479, allocations: 12 kB / 470.7 MB, free: 11.28 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 () * 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 8.756e-05/0.548, allocations: 116.8 kB / 470.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002212/0.5482, allocations: 121.4 kB / 471 MB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.142e-05/0.5483, allocations: 15.81 kB / 471 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.96e-05/0.5484, allocations: 21.94 kB / 471 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.5484, allocations: 3.984 kB / 471 MB, free: 10.99 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.5484, allocations: 7.984 kB / 471 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.5484, allocations: 0 / 471 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004572/0.5489, allocations: 377.5 kB / 471.4 MB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.5489, allocations: 0 / 471.4 MB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002039/0.5491, allocations: 39.92 kB / 471.4 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.5491, allocations: 0 / 471.4 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.5491, allocations: 4 kB / 471.4 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.5491, allocations: 0 / 471.4 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.5491, allocations: 4 kB / 471.4 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004277/0.5496, allocations: 412.3 kB / 471.8 MB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.879e-05/0.5497, allocations: 92.95 kB / 471.9 MB, free: 9.949 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.907e-05/0.5497, allocations: 7.938 kB / 471.9 MB, free: 9.941 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001227/0.5498, allocations: 4 kB / 471.9 MB, free: 9.938 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.233e-05/0.5499, allocations: 12.03 kB / 472 MB, free: 9.926 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-06/0.5499, allocations: 4 kB / 472 MB, free: 9.922 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.852e-05/0.55, allocations: 120.9 kB / 472.1 MB, free: 9.805 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.55, allocations: 0 / 472.1 MB, free: 9.805 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003442/0.5503, allocations: 47.84 kB / 472.1 MB, free: 9.758 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 () * 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.0007403/0.5511, allocations: 1.22 MB / 473.3 MB, free: 8.484 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002301/0.5513, allocations: 127.8 kB / 473.5 MB, free: 8.359 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.5513, allocations: 0 / 473.5 MB, free: 8.359 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.494e-05/0.5514, allocations: 44.75 kB / 473.5 MB, free: 8.316 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003536/0.5518, allocations: 25.11 kB / 473.5 MB, free: 8.293 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.5529, allocations: 0.5279 MB / 474.1 MB, free: 7.719 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003681/0.5533, allocations: 0.7438 MB / 474.8 MB, free: 6.949 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.442e-05/0.5534, allocations: 17.86 kB / 474.8 MB, free: 6.934 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.71e-05/0.5534, allocations: 59.36 kB / 474.9 MB, free: 6.879 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5535, allocations: 0 / 474.9 MB, free: 6.879 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02256/0.576, allocations: 2.76 MB / 477.6 MB, free: 4.141 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002198/0.5763, allocations: 155.2 kB / 477.8 MB, free: 3.938 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.802/2.378, allocations: 4 kB / 477.8 MB, free: 3.934 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_WhyArrows_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_WhyArrows.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat does not exist to compare? outputFormat=mat