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/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 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 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007634/0.0007635, allocations: 95.69 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007667/0.0007667, allocations: 176.6 kB / 16.58 MB, free: 5.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.339/1.339, allocations: 205.4 MB / 222.7 MB, free: 5.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3121/0.3121, allocations: 43.55 MB / 314.6 MB, free: 8.812 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004545/0.0004546, allocations: 18.97 kB / 384 MB, free: 7.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1048, allocations: 58.85 MB / 442.9 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0006069/0.1055, allocations: 268.3 kB / 443.1 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006178/0.1061, allocations: 346.5 kB / 443.5 MB, free: 12.36 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.695e-05/0.1062, allocations: 0 / 443.5 MB, free: 12.36 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.505e-05/0.1062, allocations: 7.938 kB / 443.5 MB, free: 12.35 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.541e-05/0.1062, allocations: 0 / 443.5 MB, free: 12.35 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003555/0.1066, allocations: 79.8 kB / 443.6 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.191e-05/0.1066, allocations: 19.92 kB / 443.6 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.351e-05/0.1067, allocations: 4 kB / 443.6 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.371e-05/0.1067, allocations: 15.97 kB / 443.6 MB, free: 12.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.936e-05/0.1068, allocations: 11.92 kB / 443.6 MB, free: 12.22 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.384e-05/0.1068, allocations: 4 kB / 443.6 MB, free: 12.22 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002168/0.107, allocations: 111.9 kB / 443.7 MB, free: 12.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.706e-05/0.107, allocations: 15.92 kB / 443.7 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.265e-05/0.1071, allocations: 25.7 kB / 443.8 MB, free: 12.06 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001285/0.1072, allocations: 64.12 kB / 443.8 MB, free: 12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.1072, allocations: 4 kB / 443.8 MB, free: 12 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1072, allocations: 0 / 443.8 MB, free: 12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.888e-06/0.1072, allocations: 0 / 443.8 MB, free: 12 MB / 382.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.0003658/0.1076, allocations: 351.3 kB / 444.2 MB, free: 11.61 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.221e-05/0.1077, allocations: 8.031 kB / 444.2 MB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.951e-05/0.1077, allocations: 38.56 kB / 444.2 MB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.273e-05/0.1077, allocations: 11.86 kB / 444.2 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.917e-05/0.1078, allocations: 170.9 kB / 444.4 MB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.576e-06/0.1078, allocations: 4 kB / 444.4 MB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.123e-05/0.1079, allocations: 8 kB / 444.4 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001006/0.108, allocations: 49.69 kB / 444.5 MB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.108, allocations: 3.906 kB / 444.5 MB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.464e-05/0.108, allocations: 3.984 kB / 444.5 MB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.547e-06/0.108, allocations: 0 / 444.5 MB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.864e-05/0.1081, allocations: 31.91 kB / 444.5 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001637/0.1083, allocations: 177.6 kB / 444.7 MB, free: 11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001738/0.1084, allocations: 50.55 kB / 444.7 MB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.355e-05/0.1085, allocations: 28.8 kB / 444.7 MB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002302/0.1087, allocations: 121.3 kB / 444.9 MB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.1088, allocations: 38.5 kB / 444.9 MB, free: 10.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.042e-06/0.1088, allocations: 0 / 444.9 MB, free: 10.73 MB / 382.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.03377/0.1425, allocations: 2.811 MB / 447.7 MB, free: 7.883 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.451e-05/0.1426, allocations: 55.41 kB / 447.8 MB, free: 7.816 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.942e-05/0.1427, allocations: 101.8 kB / 447.9 MB, free: 7.707 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.015e-05/0.1427, allocations: 29.7 kB / 447.9 MB, free: 7.672 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.048e-05/0.1428, allocations: 88.14 kB / 448 MB, free: 7.582 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.983e-05/0.1429, allocations: 71 kB / 448 MB, free: 7.512 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.36e-05/0.1429, allocations: 4.469 kB / 448.1 MB, free: 7.508 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.873e-05/0.143, allocations: 322.8 kB / 448.4 MB, free: 7.184 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003626/0.1434, allocations: 187.9 kB / 448.6 MB, free: 7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000348/0.1437, allocations: 187.9 kB / 448.7 MB, free: 6.816 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004965/0.1442, allocations: 219.9 kB / 449 MB, free: 6.602 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.1442, allocations: 3.938 kB / 449 MB, free: 6.598 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009641/0.1452, allocations: 0.4888 MB / 449.4 MB, free: 6.105 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.1452, allocations: 4 kB / 449.4 MB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1452, allocations: 0 / 449.4 MB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.1453, allocations: 4 kB / 449.5 MB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003352/0.1456, allocations: 75.94 kB / 449.5 MB, free: 6.023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.1456, allocations: 7.953 kB / 449.5 MB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001832/0.1458, allocations: 23.98 kB / 449.6 MB, free: 5.992 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.995e-05/0.1459, allocations: 15.98 kB / 449.6 MB, free: 5.977 MB / 382.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.0001068/0.146, allocations: 129.8 kB / 449.7 MB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.943e-05/0.146, allocations: 7.906 kB / 449.7 MB, free: 5.832 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001197/0.1472, allocations: 0.5682 MB / 450.3 MB, free: 5.254 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.1472, allocations: 4 kB / 450.3 MB, free: 5.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.1472, allocations: 0 / 450.3 MB, free: 5.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.1472, allocations: 4 kB / 450.3 MB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001903/0.1492, allocations: 0.9518 MB / 451.2 MB, free: 4.219 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.1492, allocations: 4 kB / 451.2 MB, free: 4.215 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002678/0.1494, allocations: 76.12 kB / 451.3 MB, free: 4.141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.1495, allocations: 4 kB / 451.3 MB, free: 4.137 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.97e-05/0.1495, allocations: 23.98 kB / 451.3 MB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.1495, allocations: 0 / 451.3 MB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.177e-06/0.1495, allocations: 8.031 kB / 451.3 MB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008506/0.1504, allocations: 488.4 kB / 451.8 MB, free: 3.594 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.87e-05/0.1504, allocations: 85.02 kB / 451.9 MB, free: 3.492 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.602e-05/0.1505, allocations: 11.95 kB / 451.9 MB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000194/0.1507, allocations: 27.97 kB / 451.9 MB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.868e-05/0.1507, allocations: 19.92 kB / 452 MB, free: 3.434 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.581e-05/0.1507, allocations: 15.98 kB / 452 MB, free: 3.418 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.361e-05/0.1508, allocations: 79.28 kB / 452.1 MB, free: 3.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1508, allocations: 0 / 452.1 MB, free: 3.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008056/0.1516, allocations: 320 kB / 452.4 MB, free: 3.027 MB / 382.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.002241/0.1538, allocations: 1.154 MB / 453.5 MB, free: 1.832 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000789/0.1546, allocations: 367.7 kB / 453.9 MB, free: 1.473 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.1547, allocations: 0 / 453.9 MB, free: 1.473 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003231/0.155, allocations: 168.2 kB / 454 MB, free: 1.309 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002571/0.1553, allocations: 12 kB / 454.1 MB, free: 1.297 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001525/0.1568, allocations: 0.5604 MB / 454.6 MB, free: 0.6758 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1703/0.3271, allocations: 0.6917 MB / 455.3 MB, free: 45.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003992/0.3275, allocations: 95.59 kB / 455.4 MB, free: 45.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002093/0.3277, allocations: 60.09 kB / 455.5 MB, free: 45.05 MB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3278, allocations: 0 / 455.5 MB, free: 45.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03021/0.358, allocations: 18.47 MB / 473.9 MB, free: 43.37 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001372/0.3581, allocations: 198.3 kB / 474.1 MB, free: 43.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.767/2.125, allocations: 0 / 474.1 MB, free: 43.12 MB / 382.1 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) Environment - environmentSimulation: 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