Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.002125/0.002125, allocations: 186.3 kB / 16.41 MB, free: 5.727 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.207/2.207, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001178/0.001177, allocations: 99.16 kB / 270.9 MB, free: 8.363 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.5343/0.5343, allocations: 43.55 MB / 362.7 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004901/0.0004903, allocations: 20 kB / 431.5 MB, free: 6.051 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1329, allocations: 58.85 MB / 490.3 MB, free: 11.12 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4878/0.6208, allocations: 84.36 MB / 0.5612 GB, free: 2.297 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/0.6211, allocations: 68.73 kB / 0.5613 GB, free: 2.23 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007516/0.6287, allocations: 1.782 MB / 0.563 GB, free: 480 kB / 378.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.6287, allocations: 0 / 0.563 GB, free: 480 kB / 378.7 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.6287, allocations: 4 kB / 0.563 GB, free: 476 kB / 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.000367/0.6291, allocations: 374.1 kB / 0.5634 GB, free: 60 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.6292, allocations: 12.03 kB / 0.5634 GB, free: 48 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.284e-05/0.6292, allocations: 37.98 kB / 0.5634 GB, free: 4 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.763e-05/0.6293, allocations: 3.906 kB / 0.5634 GB, free: 0 / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001399/0.6295, allocations: 167.1 kB / 0.5636 GB, free: 15.79 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.6295, allocations: 8.812 kB / 0.5636 GB, free: 15.79 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.596e-05/0.6295, allocations: 7.984 kB / 0.5636 GB, free: 15.78 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001557/0.6297, allocations: 53.62 kB / 0.5636 GB, free: 15.72 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.6297, allocations: 4.938 kB / 0.5636 GB, free: 15.72 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.6297, allocations: 4 kB / 0.5637 GB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.431e-06/0.6298, allocations: 4 kB / 0.5637 GB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001023/0.6299, allocations: 35.5 kB / 0.5637 GB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002341/0.6301, allocations: 165.6 kB / 0.5638 GB, free: 15.47 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003049/0.6304, allocations: 58.55 kB / 0.5639 GB, free: 15.4 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003461/0.6308, allocations: 109.1 kB / 0.564 GB, free: 15.28 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.664e-05/0.6308, allocations: 31.69 kB / 0.564 GB, free: 15.24 MB / 394.7 MB Notification: Performance of pre-optimization done (n=9): time 1.684e-06/0.6308, allocations: 0 / 0.564 GB, free: 15.24 MB / 394.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.0809/0.7118, allocations: 2.818 MB / 0.5668 GB, free: 12.4 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.214e-05/0.7119, allocations: 59.34 kB / 0.5668 GB, free: 12.33 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.281e-05/0.712, allocations: 93.28 kB / 0.5669 GB, free: 12.23 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.335e-05/0.712, allocations: 25.7 kB / 0.567 GB, free: 12.2 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.233e-05/0.7121, allocations: 154.6 kB / 0.5671 GB, free: 12.05 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000118/0.7123, allocations: 74.92 kB / 0.5672 GB, free: 11.98 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.118e-05/0.7123, allocations: 3.938 kB / 0.5672 GB, free: 11.97 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.7125, allocations: 322.8 kB / 0.5675 GB, free: 11.65 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007455/0.7132, allocations: 191.9 kB / 0.5677 GB, free: 11.46 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007299/0.714, allocations: 187.9 kB / 0.5679 GB, free: 11.28 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001034/0.715, allocations: 223.5 kB / 0.5681 GB, free: 11.06 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.7151, allocations: 0 / 0.5681 GB, free: 11.06 MB / 394.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.002058/0.7171, allocations: 489.4 kB / 0.5685 GB, free: 10.58 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/0.7172, allocations: 4 kB / 0.5685 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.7172, allocations: 0 / 0.5685 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.7172, allocations: 4 kB / 0.5685 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000707/0.7179, allocations: 75.88 kB / 0.5686 GB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.508e-05/0.718, allocations: 11.95 kB / 0.5686 GB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004275/0.7184, allocations: 19.98 kB / 0.5686 GB, free: 10.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.653e-05/0.7185, allocations: 19.98 kB / 0.5687 GB, free: 10.45 MB / 394.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.0002023/0.7187, allocations: 121.8 kB / 0.5688 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.326e-05/0.7188, allocations: 7.906 kB / 0.5688 GB, free: 10.31 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00261/0.7214, allocations: 0.5721 MB / 0.5693 GB, free: 9.73 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.28e-05/0.7215, allocations: 4 kB / 0.5693 GB, free: 9.727 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.7215, allocations: 0 / 0.5693 GB, free: 9.727 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.7215, allocations: 0 / 0.5693 GB, free: 9.727 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004133/0.7256, allocations: 0.9492 MB / 0.5703 GB, free: 8.715 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.147e-05/0.7257, allocations: 4.547 kB / 0.5703 GB, free: 8.711 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005743/0.7263, allocations: 80.08 kB / 0.5704 GB, free: 8.633 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.614e-05/0.7263, allocations: 4 kB / 0.5704 GB, free: 8.629 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.641e-05/0.7264, allocations: 19.92 kB / 0.5704 GB, free: 8.609 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.136e-06/0.7264, allocations: 1.812 kB / 0.5704 GB, free: 8.609 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.653e-06/0.7264, allocations: 4 kB / 0.5704 GB, free: 8.605 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001865/0.7283, allocations: 0.5455 MB / 0.5709 GB, free: 7.988 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.618e-05/0.7284, allocations: 89.02 kB / 0.571 GB, free: 7.883 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.927e-05/0.7285, allocations: 11.94 kB / 0.571 GB, free: 7.871 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003712/0.7288, allocations: 31.98 kB / 0.571 GB, free: 7.84 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.384e-05/0.7289, allocations: 7.984 kB / 0.5711 GB, free: 7.832 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.361e-05/0.729, allocations: 23.98 kB / 0.5711 GB, free: 7.809 MB / 394.7 MB Notification: Performance of sorting global known variables: time 6.031e-05/0.729, allocations: 79.28 kB / 0.5712 GB, free: 7.73 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.534e-06/0.729, allocations: 0 / 0.5712 GB, free: 7.73 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001339/0.7304, allocations: 355.6 kB / 0.5715 GB, free: 7.383 MB / 394.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.004323/0.7347, allocations: 1.668 MB / 0.5731 GB, free: 5.648 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001569/0.7363, allocations: 367.2 kB / 0.5735 GB, free: 5.293 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.7364, allocations: 0 / 0.5735 GB, free: 5.293 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006841/0.7371, allocations: 172.1 kB / 0.5736 GB, free: 5.125 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002386/0.7373, allocations: 11.98 kB / 0.5736 GB, free: 5.113 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003171/0.7405, allocations: 0.6208 MB / 0.5743 GB, free: 4.434 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003528/0.7409, allocations: 0.6967 MB / 0.5749 GB, free: 3.707 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003633/0.7413, allocations: 67.39 kB / 0.575 GB, free: 3.641 MB / 394.7 MB Notification: Performance of SimCode: time 1.172e-06/0.7413, allocations: 0 / 0.575 GB, free: 3.641 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.741/3.482, allocations: 7.689 MB / 0.5825 GB, free: 11.97 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat does not exist to compare? outputFormat=mat