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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 96.41 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 189.2 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 223.2 MB / 241.9 MB, free: 344 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2095/0.2095, allocations: 44.23 MB / 337.2 MB, free: 2.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003311/0.0003312, allocations: 13.81 kB / 409.7 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1081, allocations: 61.91 MB / 471.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0005582/0.1087, allocations: 262.8 kB / 471.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005668/0.1092, allocations: 348.9 kB / 472.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.967e-05/0.1093, allocations: 0 / 472.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.197e-06/0.1093, allocations: 0 / 472.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.572e-05/0.1093, allocations: 0 / 472.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002771/0.1096, allocations: 75.81 kB / 472.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.15e-05/0.1097, allocations: 19.92 kB / 472.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.453e-05/0.1097, allocations: 11.97 kB / 472.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.059e-05/0.1097, allocations: 11.94 kB / 472.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.383e-05/0.1098, allocations: 15.92 kB / 472.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.276e-05/0.1098, allocations: 8 kB / 472.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001861/0.11, allocations: 107.9 kB / 472.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.139e-05/0.11, allocations: 7.984 kB / 472.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.269e-05/0.1101, allocations: 25.7 kB / 472.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001182/0.1102, allocations: 67.91 kB / 472.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1102, allocations: 0 / 472.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1102, allocations: 0 / 472.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.1102, allocations: 3.938 kB / 472.6 MB, free: 12.7 MB / 350.1 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.0003908/0.1106, allocations: 355.5 kB / 472.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.1107, allocations: 12.03 kB / 472.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.315e-05/0.1107, allocations: 38.48 kB / 473 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.559e-05/0.1107, allocations: 4 kB / 473 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001271/0.1109, allocations: 170.9 kB / 473.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/0.1109, allocations: 8 kB / 473.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.291e-05/0.1109, allocations: 7.953 kB / 473.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001321/0.1111, allocations: 53.67 kB / 473.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.1111, allocations: 3.938 kB / 473.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.158e-06/0.1111, allocations: 0 / 473.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.1111, allocations: 0 / 473.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.781e-05/0.1112, allocations: 31.98 kB / 473.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001871/0.1114, allocations: 169.7 kB / 473.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002071/0.1116, allocations: 50.84 kB / 473.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.121e-05/0.1117, allocations: 28.78 kB / 473.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002665/0.1119, allocations: 125.1 kB / 473.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.112, allocations: 38.5 kB / 473.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.132e-06/0.112, allocations: 0 / 473.7 MB, free: 11.44 MB / 350.1 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.03619/0.1482, allocations: 2.816 MB / 476.5 MB, free: 8.582 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.502e-05/0.1482, allocations: 59.41 kB / 476.5 MB, free: 8.512 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.161e-05/0.1483, allocations: 93.86 kB / 476.6 MB, free: 8.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.087e-05/0.1483, allocations: 29.7 kB / 476.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.477e-05/0.1484, allocations: 92.12 kB / 476.7 MB, free: 8.281 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.247e-05/0.1485, allocations: 59.09 kB / 476.8 MB, free: 8.223 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.551e-05/0.1485, allocations: 8 kB / 476.8 MB, free: 8.215 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.132e-05/0.1486, allocations: 318.8 kB / 477.1 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003668/0.149, allocations: 187.9 kB / 477.3 MB, free: 7.711 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000353/0.1493, allocations: 191.9 kB / 477.5 MB, free: 7.523 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005884/0.1499, allocations: 218.3 kB / 477.7 MB, free: 7.312 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1499, allocations: 4 kB / 477.7 MB, free: 7.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001021/0.151, allocations: 493.3 kB / 478.2 MB, free: 6.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.151, allocations: 6.656 kB / 478.2 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.151, allocations: 0 / 478.2 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.151, allocations: 4 kB / 478.2 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003631/0.1514, allocations: 79.94 kB / 478.3 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.79e-06/0.1514, allocations: 0 / 478.3 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001945/0.1516, allocations: 27.97 kB / 478.3 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.662e-05/0.1517, allocations: 27.97 kB / 478.3 MB, free: 6.68 MB / 350.1 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.0001117/0.1518, allocations: 118.3 kB / 478.4 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.214e-05/0.1518, allocations: 11.86 kB / 478.5 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001258/0.1531, allocations: 0.5644 MB / 479 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.94e-06/0.1531, allocations: 8 kB / 479 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.1531, allocations: 0 / 479 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.1531, allocations: 4.453 kB / 479 MB, free: 5.961 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001981/0.1551, allocations: 0.9554 MB / 480 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.1551, allocations: 4 kB / 480 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002695/0.1554, allocations: 67.95 kB / 480.1 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/0.1554, allocations: 4 kB / 480.1 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.94e-05/0.1554, allocations: 19.92 kB / 480.1 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.1555, allocations: 12.38 kB / 480.1 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.1555, allocations: 7.953 kB / 480.1 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008772/0.1563, allocations: 498.5 kB / 480.6 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.782e-05/0.1564, allocations: 93 kB / 480.7 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.751e-05/0.1564, allocations: 8 kB / 480.7 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001989/0.1566, allocations: 23.98 kB / 480.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.553e-05/0.1567, allocations: 19.94 kB / 480.7 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.857e-05/0.1567, allocations: 15.98 kB / 480.7 MB, free: 4.129 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.982e-05/0.1568, allocations: 83.28 kB / 480.8 MB, free: 4.047 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1568, allocations: 0 / 480.8 MB, free: 4.047 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008399/0.1576, allocations: 316 kB / 481.1 MB, free: 3.738 MB / 350.1 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.00227/0.1599, allocations: 1.151 MB / 482.3 MB, free: 2.539 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007816/0.1607, allocations: 373.4 kB / 482.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1607, allocations: 0 / 482.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003436/0.161, allocations: 160.2 kB / 482.8 MB, free: 2.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/0.1613, allocations: 11.95 kB / 482.8 MB, free: 2.008 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001596/0.1629, allocations: 0.5564 MB / 483.4 MB, free: 1.391 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002202/0.1632, allocations: 0.7006 MB / 484.1 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003772/0.1635, allocations: 96.88 kB / 484.2 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001912/0.1637, allocations: 59.41 kB / 484.2 MB, free: 0.5 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1638, allocations: 0 / 484.2 MB, free: 0.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03177/0.1955, allocations: 18.46 MB / 0.4909 GB, free: 14.23 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002465/0.1958, allocations: 204.1 kB / 0.4911 GB, free: 13.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.764/1.96, allocations: 0 / 0.4911 GB, free: 13.98 MB / 382.1 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