Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",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.001128/0.001128, allocations: 177.7 kB / 17.06 MB, free: 5.094 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.405/1.405, allocations: 223.2 MB / 241 MB, free: 11.91 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009113/0.0009115, allocations: 90.89 kB / 292.1 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4152/0.4152, allocations: 44.22 MB / 387.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003417/0.0003416, allocations: 8 kB / 460 MB, free: 1.438 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3638, allocations: 61.9 MB / 0.5096 GB, free: 37.97 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1182/0.4821, allocations: 85.46 MB / 0.5931 GB, free: 9.656 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001829/0.4823, allocations: 75.88 kB / 0.5932 GB, free: 9.59 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004925/0.4873, allocations: 1.79 MB / 0.5949 GB, free: 7.797 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4873, allocations: 0 / 0.5949 GB, free: 7.797 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.237e-06/0.4873, allocations: 8 kB / 0.5949 GB, free: 7.789 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000345/0.4877, allocations: 363.2 kB / 0.5953 GB, free: 7.387 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.4877, allocations: 8.031 kB / 0.5953 GB, free: 7.379 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.977e-05/0.4878, allocations: 38.56 kB / 0.5953 GB, free: 7.332 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.415e-05/0.4878, allocations: 3.906 kB / 0.5953 GB, free: 7.328 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.4879, allocations: 178.9 kB / 0.5955 GB, free: 7.113 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.488, allocations: 0 / 0.5955 GB, free: 7.113 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.147e-05/0.488, allocations: 4 kB / 0.5955 GB, free: 7.109 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001209/0.4881, allocations: 53.62 kB / 0.5955 GB, free: 7.051 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.4881, allocations: 4 kB / 0.5956 GB, free: 7.047 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.4881, allocations: 4 kB / 0.5956 GB, free: 7.043 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.4882, allocations: 4 kB / 0.5956 GB, free: 7.039 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.263e-05/0.4882, allocations: 27.97 kB / 0.5956 GB, free: 7.012 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001803/0.4884, allocations: 169.5 kB / 0.5957 GB, free: 6.797 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001985/0.4886, allocations: 62.58 kB / 0.5958 GB, free: 6.727 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002284/0.4889, allocations: 109.1 kB / 0.5959 GB, free: 6.602 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/0.4889, allocations: 34.56 kB / 0.5959 GB, free: 6.559 MB / 410.7 MB Notification: Performance of pre-optimization done (n=9): time 1.152e-06/0.4889, allocations: 0 / 0.5959 GB, free: 6.559 MB / 410.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.03892/0.5278, allocations: 2.818 MB / 0.5987 GB, free: 3.707 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.568e-05/0.5279, allocations: 51.41 kB / 0.5987 GB, free: 3.645 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.884e-05/0.528, allocations: 101 kB / 0.5988 GB, free: 3.539 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.629e-05/0.528, allocations: 29.7 kB / 0.5989 GB, free: 3.504 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.863e-05/0.5281, allocations: 80.14 kB / 0.5989 GB, free: 3.422 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.558e-05/0.5282, allocations: 63.02 kB / 0.599 GB, free: 3.359 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.58e-05/0.5282, allocations: 4 kB / 0.599 GB, free: 3.355 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.5283, allocations: 326.8 kB / 0.5993 GB, free: 3.027 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003859/0.5287, allocations: 184.4 kB / 0.5995 GB, free: 2.848 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003637/0.5291, allocations: 195.8 kB / 0.5997 GB, free: 2.656 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005023/0.5296, allocations: 226.1 kB / 0.5999 GB, free: 2.438 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.5296, allocations: 0 / 0.5999 GB, free: 2.438 MB / 410.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001046/0.5307, allocations: 489.4 kB / 0.6004 GB, free: 1.953 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.5307, allocations: 11.94 kB / 0.6004 GB, free: 1.941 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.5307, allocations: 0 / 0.6004 GB, free: 1.941 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.5307, allocations: 0 / 0.6004 GB, free: 1.941 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003868/0.5311, allocations: 83.88 kB / 0.6005 GB, free: 1.859 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.5312, allocations: 0 / 0.6005 GB, free: 1.859 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002162/0.5314, allocations: 23.98 kB / 0.6005 GB, free: 1.836 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.86e-05/0.5314, allocations: 15.98 kB / 0.6005 GB, free: 1.82 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (19): * Single equations (assignments): 19 * 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.0001364/0.5316, allocations: 126.3 kB / 0.6006 GB, free: 1.688 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.556e-05/0.5316, allocations: 7.906 kB / 0.6006 GB, free: 1.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001305/0.5329, allocations: 0.5737 MB / 0.6012 GB, free: 1.102 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.5329, allocations: 4 kB / 0.6012 GB, free: 1.098 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.533, allocations: 0 / 0.6012 GB, free: 1.098 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.533, allocations: 0 / 0.6012 GB, free: 1.098 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002211/0.5352, allocations: 0.9444 MB / 0.6021 GB, free: 92 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.5352, allocations: 192 / 0.6021 GB, free: 92 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002867/0.5355, allocations: 80.12 kB / 0.6022 GB, free: 12 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.5355, allocations: 4 kB / 0.6022 GB, free: 8 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.279e-05/0.5356, allocations: 23.98 kB / 0.6022 GB, free: 15.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.304e-06/0.5356, allocations: 7.953 kB / 0.6022 GB, free: 15.98 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.5356, allocations: 0 / 0.6022 GB, free: 15.98 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009604/0.5366, allocations: 0.5494 MB / 0.6028 GB, free: 15.36 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.997e-05/0.5366, allocations: 85.02 kB / 0.6028 GB, free: 15.25 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.545e-05/0.5367, allocations: 11.98 kB / 0.6028 GB, free: 15.24 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002024/0.5369, allocations: 23.98 kB / 0.6029 GB, free: 15.22 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.981e-05/0.5369, allocations: 19.94 kB / 0.6029 GB, free: 15.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.197e-05/0.537, allocations: 15.98 kB / 0.6029 GB, free: 15.18 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.467e-05/0.537, allocations: 87.28 kB / 0.603 GB, free: 15.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.537, allocations: 0 / 0.603 GB, free: 15.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001008/0.538, allocations: 347.6 kB / 0.6033 GB, free: 14.76 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 simulation (19): * Single equations (assignments): 19 * 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.00266/0.5407, allocations: 1.666 MB / 0.6049 GB, free: 13.03 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007954/0.5415, allocations: 375.7 kB / 0.6053 GB, free: 12.66 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.5415, allocations: 0 / 0.6053 GB, free: 12.66 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003377/0.5419, allocations: 164.2 kB / 0.6055 GB, free: 12.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001754/0.542, allocations: 8 kB / 0.6055 GB, free: 12.49 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001733/0.5438, allocations: 0.6002 MB / 0.6061 GB, free: 11.83 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.5441, allocations: 0.6929 MB / 0.6067 GB, free: 11.11 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0003787/0.5445, allocations: 96.88 kB / 0.6068 GB, free: 11.01 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002032/0.5447, allocations: 59.39 kB / 0.6069 GB, free: 10.95 MB / 426.7 MB Notification: Performance of SimCode: time 3.51e-07/0.5447, allocations: 4 kB / 0.6069 GB, free: 10.95 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02295/0.5677, allocations: 8.596 MB / 0.6153 GB, free: 2.57 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002098/0.5679, allocations: 194.2 kB / 0.6155 GB, free: 2.332 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.597/2.165, allocations: 3.938 kB / 0.6155 GB, free: 2.328 MB / 426.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat does not exist to compare? outputFormat=mat