Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Fluid.TestComponents.Sources.TestSources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sources_TestSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sources.TestSources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sources_TestSources",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.002084/0.002084, allocations: 179.8 kB / 14.15 MB, free: 1.176 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.542/1.542, allocations: 221.3 MB / 236 MB, free: 2.957 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.0009786/0.0009786, allocations: 88.03 kB / 287 MB, free: 236 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2234/0.2234, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.746e-05/4.774e-05, allocations: 8 kB / 451.9 MB, free: 9.328 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.15, allocations: 61.91 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.655/8.805, allocations: 3.553 GB / 4.055 GB, free: 24.02 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003923/8.805, allocations: 83.95 kB / 4.055 GB, free: 23.94 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 7.065/15.87, allocations: 1.406 GB / 5.461 GB, free: 33.09 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.364e-06/15.87, allocations: 0 / 5.461 GB, free: 33.09 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0002634/15.87, allocations: 60.28 kB / 5.461 GB, free: 33.08 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 480 * Number of variables: 480 Notification: Performance of Generate backend data structure: time 0.03015/15.9, allocations: 6.802 MB / 5.468 GB, free: 29.38 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/15.9, allocations: 12.03 kB / 5.468 GB, free: 29.38 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00123/15.9, allocations: 272.9 kB / 5.468 GB, free: 29.33 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00194/15.9, allocations: 282.1 kB / 5.468 GB, free: 29.21 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004514/15.91, allocations: 1.443 MB / 5.47 GB, free: 28.81 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001868/15.91, allocations: 145.5 kB / 5.47 GB, free: 28.81 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007569/15.91, allocations: 178.2 kB / 5.47 GB, free: 28.81 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00636/15.92, allocations: 2.898 MB / 5.473 GB, free: 28.52 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.229e-05/15.92, allocations: 3.375 kB / 5.473 GB, free: 28.52 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004561/15.92, allocations: 84.22 kB / 5.473 GB, free: 28.52 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002138/15.92, allocations: 158.6 kB / 5.473 GB, free: 28.51 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005285/15.92, allocations: 3.102 MB / 5.476 GB, free: 28.5 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01992/15.94, allocations: 11.3 MB / 5.487 GB, free: 23.99 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004172/15.95, allocations: 2.251 MB / 5.489 GB, free: 23.94 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001634/15.95, allocations: 0.9693 MB / 5.49 GB, free: 23.93 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00254/15.95, allocations: 3.4 MB / 5.493 GB, free: 20.27 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.08e-05/15.95, allocations: 62.08 kB / 5.494 GB, free: 20.23 MB / 0.6042 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001849/15.95, allocations: 272.2 kB / 5.494 GB, free: 20.12 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=155): time 2.748e-05/15.95, allocations: 0 / 5.494 GB, free: 20.12 MB / 0.6042 GB Notification: Performance of matching and sorting (n=155): time 0.004986/15.96, allocations: 2.222 MB / 5.496 GB, free: 19.94 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.825e-05/15.96, allocations: 196.1 kB / 5.496 GB, free: 19.72 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003338/15.96, allocations: 1.68 MB / 5.498 GB, free: 19.48 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0003797/15.96, allocations: 62.42 kB / 5.498 GB, free: 19.45 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009428/15.96, allocations: 0.9058 MB / 5.499 GB, free: 19.1 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006081/15.96, allocations: 0.5308 MB / 5.499 GB, free: 18.76 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002477/15.96, allocations: 43.12 kB / 5.499 GB, free: 18.76 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001527/15.96, allocations: 377.6 kB / 5.5 GB, free: 18.46 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001783/15.96, allocations: 0.9919 MB / 5.501 GB, free: 18.45 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00204/15.97, allocations: 1.393 MB / 5.502 GB, free: 18.04 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002082/15.97, allocations: 1.323 MB / 5.503 GB, free: 17.87 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.647e-05/15.97, allocations: 3.625 kB / 5.503 GB, free: 17.87 MB / 0.6042 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.005854/15.97, allocations: 3.129 MB / 5.506 GB, free: 17.52 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009943/15.98, allocations: 4.109 MB / 5.51 GB, free: 13.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.664e-05/15.98, allocations: 15.84 kB / 5.51 GB, free: 13.2 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003889/15.98, allocations: 0.661 MB / 5.511 GB, free: 13.18 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002146/15.98, allocations: 453.1 kB / 5.511 GB, free: 13.18 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001624/15.98, allocations: 1.613 MB / 5.513 GB, free: 12.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002803/15.99, allocations: 150.1 kB / 5.513 GB, free: 12.12 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000437/15.99, allocations: 131.5 kB / 5.513 GB, free: 12.12 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/15.99, allocations: 10.8 kB / 5.513 GB, free: 12.12 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004988/15.99, allocations: 2.792 MB / 5.516 GB, free: 11.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.251e-05/15.99, allocations: 8.875 kB / 5.516 GB, free: 11.91 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001357/15.99, allocations: 293 kB / 5.516 GB, free: 11.89 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002157/16, allocations: 0.4918 MB / 5.517 GB, free: 11.89 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009197/16, allocations: 1.314 MB / 5.518 GB, free: 10.85 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002361/16, allocations: 140.8 kB / 5.518 GB, free: 10.84 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003432/16, allocations: 127.5 kB / 5.518 GB, free: 10.84 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 5 (traceSubstance.ind,traceSubstance2.ind,traceSubstance3.ind,traceSubstance4.ind,traceSubstance1.ind) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (235): * Single equations (assignments): 228 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0007518/16, allocations: 212.6 kB / 5.519 GB, free: 10.73 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006888/16, allocations: 216.8 kB / 5.519 GB, free: 10.62 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006522/16.01, allocations: 3.706 MB / 5.522 GB, free: 10.32 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.617e-05/16.01, allocations: 22.06 kB / 5.522 GB, free: 10.32 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.408e-05/16.01, allocations: 0 / 5.522 GB, free: 10.32 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.288e-05/16.01, allocations: 17.44 kB / 5.522 GB, free: 10.31 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0112/16.02, allocations: 5.727 MB / 5.528 GB, free: 9.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.232e-05/16.02, allocations: 14.27 kB / 5.528 GB, free: 9.336 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001334/16.02, allocations: 301.2 kB / 5.528 GB, free: 9.32 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003345/16.02, allocations: 0.6284 MB / 5.529 GB, free: 9.297 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002376/16.02, allocations: 55.98 kB / 5.529 GB, free: 9.297 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001693/16.02, allocations: 1.613 MB / 5.531 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.725e-06/16.02, allocations: 11.94 kB / 5.531 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005062/16.03, allocations: 3.072 MB / 5.534 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001364/16.03, allocations: 373.1 kB / 5.534 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008924/16.03, allocations: 43.58 kB / 5.534 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002528/16.03, allocations: 122.8 kB / 5.534 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002719/16.04, allocations: 132.4 kB / 5.534 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003594/16.04, allocations: 105.2 kB / 5.534 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.002979/16.04, allocations: 1.4 MB / 5.536 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.11e-07/16.04, allocations: 0 / 5.536 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01267/16.05, allocations: 2.848 MB / 5.538 GB, free: 22.18 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (161): * Single equations (assignments): 158 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01966/16.07, allocations: 8.687 MB / 5.547 GB, free: 18.25 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.008877/16.08, allocations: 4.324 MB / 5.551 GB, free: 17.47 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.499e-05/16.08, allocations: 4.578 kB / 5.551 GB, free: 17.47 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.002578/16.08, allocations: 1.093 MB / 5.552 GB, free: 17.42 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009037/16.09, allocations: 1.218 MB / 5.553 GB, free: 17.37 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01438/16.11, allocations: 4.568 MB / 5.558 GB, free: 16.05 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001633/16.11, allocations: 1.654 MB / 5.559 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.006137/16.11, allocations: 1.443 MB / 5.561 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001723/16.12, allocations: 0.8408 MB / 5.562 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of SimCode: time 1.923e-06/16.12, allocations: 0 / 5.562 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7389/16.85, allocations: 133 MB / 5.692 GB, free: 50.02 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001501/16.85, allocations: 232.7 kB / 5.692 GB, free: 49.75 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.112/23.97, allocations: 0 / 5.692 GB, free: 49.75 MB / 0.6355 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sources_TestSources_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sources_TestSources.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources_res.mat does not exist to compare? outputFormat=mat