Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",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.001628/0.001628, allocations: 183.2 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.037/2.037, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.0008919/0.0008919, allocations: 95.48 kB / 267 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.415/0.415, allocations: 43.47 MB / 358.6 MB, free: 52.29 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.37e-05/4.384e-05, allocations: 8 kB / 425.4 MB, free: 8.797 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1404, allocations: 58.84 MB / 484.2 MB, free: 13.85 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4532/0.5936, allocations: 85.27 MB / 0.5562 GB, free: 3.684 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002213/0.5939, allocations: 72.48 kB / 0.5562 GB, free: 3.613 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0244/0.6183, allocations: 8.234 MB / 0.5643 GB, free: 11.41 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.6184, allocations: 0 / 0.5643 GB, free: 11.41 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.6184, allocations: 0 / 0.5643 GB, free: 11.41 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003852/0.6188, allocations: 343.6 kB / 0.5646 GB, free: 11.04 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.6188, allocations: 12.03 kB / 0.5646 GB, free: 11.02 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.456e-05/0.6189, allocations: 34.56 kB / 0.5646 GB, free: 10.98 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.789e-05/0.6189, allocations: 3.438 kB / 0.5646 GB, free: 10.98 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.681e-05/0.619, allocations: 167 kB / 0.5648 GB, free: 10.78 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.985e-06/0.619, allocations: 0 / 0.5648 GB, free: 10.78 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.204e-05/0.6191, allocations: 8 kB / 0.5648 GB, free: 10.77 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000111/0.6192, allocations: 33.7 kB / 0.5648 GB, free: 10.73 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.6192, allocations: 0 / 0.5648 GB, free: 10.73 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.6192, allocations: 0.875 kB / 0.5648 GB, free: 10.73 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.6192, allocations: 5.375 kB / 0.5649 GB, free: 10.73 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.571e-05/0.6193, allocations: 4 kB / 0.5649 GB, free: 10.72 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003232/0.6196, allocations: 245.7 kB / 0.5651 GB, free: 10.43 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.205e-05/0.6196, allocations: 22.58 kB / 0.5651 GB, free: 10.4 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.225e-05/0.6197, allocations: 4.922 kB / 0.5651 GB, free: 10.39 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.6197, allocations: 4 kB / 0.5651 GB, free: 10.39 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.687e-05/0.6197, allocations: 30.56 kB / 0.5651 GB, free: 10.35 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.6197, allocations: 0 / 0.5651 GB, free: 10.35 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001378/0.6199, allocations: 39.34 kB / 0.5652 GB, free: 10.31 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.998e-05/0.6199, allocations: 59.36 kB / 0.5652 GB, free: 10.24 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.853e-05/0.62, allocations: 93.03 kB / 0.5653 GB, free: 10.14 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.653e-05/0.62, allocations: 25.7 kB / 0.5654 GB, free: 10.11 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.64e-05/0.6201, allocations: 88.05 kB / 0.5654 GB, free: 10.02 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.869e-06/0.6201, allocations: 0 / 0.5654 GB, free: 10.02 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-06/0.6201, allocations: 0 / 0.5654 GB, free: 10.02 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.6202, allocations: 310.8 kB / 0.5657 GB, free: 9.707 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.522e-05/0.6202, allocations: 11.98 kB / 0.5657 GB, free: 9.695 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.341e-05/0.6202, allocations: 22.7 kB / 0.5658 GB, free: 9.664 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.797e-05/0.6203, allocations: 4 kB / 0.5658 GB, free: 9.66 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.6203, allocations: 0 / 0.5658 GB, free: 9.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.418e-05/0.6204, allocations: 53.53 kB / 0.5658 GB, free: 9.602 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.6204, allocations: 4 kB / 0.5658 GB, free: 9.598 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.6204, allocations: 4 kB / 0.5658 GB, free: 9.594 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.6204, allocations: 4.094 kB / 0.5658 GB, free: 9.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.022e-05/0.6205, allocations: 11.94 kB / 0.5658 GB, free: 9.578 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.6205, allocations: 6.188 kB / 0.5659 GB, free: 9.574 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.979e-05/0.6205, allocations: 3.953 kB / 0.5659 GB, free: 9.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.432e-05/0.6205, allocations: 4 kB / 0.5659 GB, free: 9.566 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 2 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.994e-05/0.6206, allocations: 101 kB / 0.566 GB, free: 9.461 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.265e-05/0.6206, allocations: 4 kB / 0.566 GB, free: 9.457 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001092/0.6207, allocations: 44.81 kB / 0.566 GB, free: 9.41 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.6208, allocations: 4.094 kB / 0.566 GB, free: 9.406 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.6208, allocations: 0 / 0.566 GB, free: 9.406 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.6208, allocations: 3.984 kB / 0.566 GB, free: 9.402 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001431/0.6209, allocations: 149.6 kB / 0.5662 GB, free: 9.207 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.169e-06/0.6209, allocations: 4 kB / 0.5662 GB, free: 9.203 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.004e-06/0.6209, allocations: 0 / 0.5662 GB, free: 9.203 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.6209, allocations: 3.938 kB / 0.5662 GB, free: 9.199 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.18e-06/0.621, allocations: 0 / 0.5662 GB, free: 9.199 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.621, allocations: 0 / 0.5662 GB, free: 9.199 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.621, allocations: 0 / 0.5662 GB, free: 9.199 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.363e-05/0.6211, allocations: 139.5 kB / 0.5663 GB, free: 9.047 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.491e-05/0.6211, allocations: 77.11 kB / 0.5664 GB, free: 8.953 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.6211, allocations: 4 kB / 0.5664 GB, free: 8.949 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.53e-05/0.6212, allocations: 0 / 0.5664 GB, free: 8.949 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.755e-05/0.6212, allocations: 0 / 0.5664 GB, free: 8.949 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-06/0.6212, allocations: 0 / 0.5664 GB, free: 8.949 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.854e-05/0.6213, allocations: 83.31 kB / 0.5665 GB, free: 8.867 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6213, allocations: 0 / 0.5665 GB, free: 8.867 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003139/0.6216, allocations: 57.33 kB / 0.5665 GB, free: 8.812 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005317/0.6221, allocations: 0.7132 MB / 0.5672 GB, free: 8.074 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.446e-05/0.6222, allocations: 37.83 kB / 0.5672 GB, free: 8.031 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.6222, allocations: 0 / 0.5672 GB, free: 8.031 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.242e-05/0.6223, allocations: 37.64 kB / 0.5673 GB, free: 7.988 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001525/0.6224, allocations: 4.562 kB / 0.5673 GB, free: 7.984 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003697/0.6228, allocations: 98.58 kB / 0.5674 GB, free: 7.852 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002655/0.6231, allocations: 0.677 MB / 0.568 GB, free: 7.148 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 1.932e-05/0.6231, allocations: 0 / 0.568 GB, free: 7.148 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.071e-05/0.6231, allocations: 7.688 kB / 0.568 GB, free: 7.141 MB / 394.7 MB Notification: Performance of SimCode: time 4.01e-07/0.6231, allocations: 4 kB / 0.568 GB, free: 7.137 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0115/0.6346, allocations: 1.428 MB / 0.5694 GB, free: 5.789 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001739/0.6349, allocations: 163.6 kB / 0.5696 GB, free: 5.559 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.563/2.198, allocations: 64 / 0.5696 GB, free: 5.559 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat does not exist to compare? outputFormat=mat