Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",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.001338/0.001338, allocations: 185.2 kB / 15.76 MB, free: 6.367 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.679/1.679, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001051/0.001051, allocations: 98.86 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2326/0.2326, allocations: 43.56 MB / 362.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003338/0.0003338, allocations: 8 kB / 431.5 MB, free: 19.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1332, allocations: 58.86 MB / 490.3 MB, free: 8.594 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3907/0.524, allocations: 84.37 MB / 0.5612 GB, free: 15.36 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002339/0.5243, allocations: 59.28 kB / 0.5613 GB, free: 15.33 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005212/0.5295, allocations: 1.786 MB / 0.563 GB, free: 13.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.895e-06/0.5295, allocations: 3.938 kB / 0.563 GB, free: 13.79 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.964e-06/0.5295, allocations: 0 / 0.563 GB, free: 13.79 MB / 378.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.0004121/0.53, allocations: 367.2 kB / 0.5634 GB, free: 13.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.584e-05/0.53, allocations: 12.03 kB / 0.5634 GB, free: 13.38 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.287e-05/0.5301, allocations: 30.56 kB / 0.5634 GB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.309e-05/0.5301, allocations: 15.17 kB / 0.5635 GB, free: 13.33 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001518/0.5303, allocations: 167 kB / 0.5636 GB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.669e-05/0.5303, allocations: 4 kB / 0.5636 GB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.627e-05/0.5303, allocations: 6.75 kB / 0.5636 GB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001425/0.5305, allocations: 55.31 kB / 0.5637 GB, free: 13.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.5305, allocations: 3.906 kB / 0.5637 GB, free: 13.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.5305, allocations: 3.125 kB / 0.5637 GB, free: 13.06 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.5305, allocations: 0 / 0.5637 GB, free: 13.06 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.881e-05/0.5306, allocations: 35.22 kB / 0.5637 GB, free: 13.03 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002213/0.5308, allocations: 167.4 kB / 0.5639 GB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002391/0.5311, allocations: 61.58 kB / 0.5639 GB, free: 12.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002484/0.5314, allocations: 109.1 kB / 0.564 GB, free: 12.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/0.5314, allocations: 38.06 kB / 0.5641 GB, free: 12.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.343e-06/0.5314, allocations: 0 / 0.5641 GB, free: 12.59 MB / 378.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.03812/0.5695, allocations: 2.809 MB / 0.5668 GB, free: 10.01 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.5696, allocations: 55.41 kB / 0.5669 GB, free: 9.941 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.74e-05/0.5697, allocations: 98.56 kB / 0.567 GB, free: 9.844 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.572e-05/0.5698, allocations: 28.95 kB / 0.567 GB, free: 9.812 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.747e-05/0.5698, allocations: 88.14 kB / 0.5671 GB, free: 9.723 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.794e-05/0.5699, allocations: 69.86 kB / 0.5671 GB, free: 9.664 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.21e-05/0.5699, allocations: 4 kB / 0.5671 GB, free: 9.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.5701, allocations: 318.2 kB / 0.5675 GB, free: 9.344 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003724/0.5705, allocations: 191.5 kB / 0.5676 GB, free: 9.219 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003694/0.5708, allocations: 197.5 kB / 0.5678 GB, free: 9.086 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004721/0.5713, allocations: 215.5 kB / 0.568 GB, free: 8.953 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.5713, allocations: 4 kB / 0.568 GB, free: 8.949 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001051/0.5724, allocations: 491.7 kB / 0.5685 GB, free: 8.602 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.5724, allocations: 4 kB / 0.5685 GB, free: 8.598 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.5724, allocations: 3.984 kB / 0.5685 GB, free: 8.594 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.128e-05/0.5725, allocations: 0 / 0.5685 GB, free: 8.594 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004099/0.5729, allocations: 83.88 kB / 0.5686 GB, free: 8.512 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.5729, allocations: 3.953 kB / 0.5686 GB, free: 8.508 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002277/0.5731, allocations: 23.23 kB / 0.5686 GB, free: 8.488 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.825e-05/0.5732, allocations: 24.45 kB / 0.5686 GB, free: 8.465 MB / 378.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.0001719/0.5734, allocations: 123.6 kB / 0.5688 GB, free: 8.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.619e-05/0.5734, allocations: 7.906 kB / 0.5688 GB, free: 8.332 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001363/0.5748, allocations: 0.5682 MB / 0.5693 GB, free: 7.902 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.5748, allocations: 0 / 0.5693 GB, free: 7.902 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.5748, allocations: 7.938 kB / 0.5693 GB, free: 7.895 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.5748, allocations: 4 kB / 0.5693 GB, free: 7.891 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002182/0.577, allocations: 0.9341 MB / 0.5702 GB, free: 6.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.577, allocations: 4.25 kB / 0.5702 GB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002866/0.5773, allocations: 75.88 kB / 0.5703 GB, free: 6.902 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.494e-06/0.5773, allocations: 8 kB / 0.5703 GB, free: 6.895 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.158e-05/0.5774, allocations: 15.8 kB / 0.5703 GB, free: 6.883 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.5774, allocations: 8.188 kB / 0.5703 GB, free: 6.875 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.5774, allocations: 3.938 kB / 0.5704 GB, free: 6.871 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.5784, allocations: 0.5509 MB / 0.5709 GB, free: 6.316 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.962e-05/0.5785, allocations: 85.02 kB / 0.571 GB, free: 6.215 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.726e-05/0.5785, allocations: 15.81 kB / 0.571 GB, free: 6.203 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002085/0.5787, allocations: 19.98 kB / 0.571 GB, free: 6.184 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.929e-05/0.5788, allocations: 19.86 kB / 0.571 GB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.959e-05/0.5788, allocations: 15.98 kB / 0.571 GB, free: 6.152 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.239e-05/0.5789, allocations: 82.84 kB / 0.5711 GB, free: 6.074 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5789, allocations: 0 / 0.5711 GB, free: 6.074 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009737/0.5799, allocations: 347.6 kB / 0.5714 GB, free: 5.738 MB / 378.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.002665/0.5825, allocations: 1.675 MB / 0.5731 GB, free: 4.074 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007875/0.5833, allocations: 367.3 kB / 0.5734 GB, free: 3.809 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.5833, allocations: 0 / 0.5734 GB, free: 3.809 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003379/0.5837, allocations: 163 kB / 0.5736 GB, free: 3.676 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001715/0.5839, allocations: 7.938 kB / 0.5736 GB, free: 3.672 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001778/0.5857, allocations: 0.5975 MB / 0.5742 GB, free: 3.059 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.586, allocations: 0.7045 MB / 0.5749 GB, free: 2.324 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003743/0.5864, allocations: 92.88 kB / 0.575 GB, free: 2.227 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002012/0.5866, allocations: 59.2 kB / 0.575 GB, free: 2.176 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5866, allocations: 0 / 0.575 GB, free: 2.176 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02566/0.6122, allocations: 8.58 MB / 0.5834 GB, free: 9.641 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002311/0.6125, allocations: 217.5 kB / 0.5836 GB, free: 9.379 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.673/2.285, allocations: 4 kB / 0.5836 GB, free: 9.375 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat does not exist to compare? outputFormat=mat