Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0017/0.0017, allocations: 121.2 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001971/0.001971, allocations: 206.6 kB / 21.45 MB, free: 1.629 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 230.4 MB / 254.7 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.3171/0.3171, allocations: 46.94 MB / 357.7 MB, free: 10.2 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002296/0.002296, allocations: 79.88 kB / 0.4917 GB, free: 7.75 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1281, allocations: 66.04 MB / 0.5561 GB, free: 5.582 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.00166/0.1298, allocations: 0.5332 MB / 0.5567 GB, free: 5.043 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006874/0.1304, allocations: 367.4 kB / 0.557 GB, free: 4.684 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.657e-05/0.1305, allocations: 0 / 0.557 GB, free: 4.684 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.441e-05/0.1305, allocations: 3.938 kB / 0.557 GB, free: 4.68 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 2.941e-05/0.1305, allocations: 3.938 kB / 0.557 GB, free: 4.676 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003917/0.1309, allocations: 107.6 kB / 0.5571 GB, free: 4.57 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.754e-05/0.131, allocations: 27.92 kB / 0.5572 GB, free: 4.543 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.98e-05/0.131, allocations: 8 kB / 0.5572 GB, free: 4.535 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.2e-05/0.131, allocations: 11.92 kB / 0.5572 GB, free: 4.523 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.742e-05/0.1311, allocations: 19.91 kB / 0.5572 GB, free: 4.504 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.381e-05/0.1311, allocations: 4 kB / 0.5572 GB, free: 4.5 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002075/0.1313, allocations: 111.9 kB / 0.5573 GB, free: 4.391 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.789e-05/0.1313, allocations: 7.984 kB / 0.5573 GB, free: 4.383 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.728e-05/0.1314, allocations: 27.8 kB / 0.5573 GB, free: 4.355 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001796/0.1315, allocations: 91.69 kB / 0.5574 GB, free: 4.266 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1315, allocations: 0 / 0.5574 GB, free: 4.266 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1315, allocations: 0 / 0.5574 GB, free: 4.266 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.136e-06/0.1316, allocations: 0 / 0.5574 GB, free: 4.266 MB / 414.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.0004412/0.132, allocations: 371.1 kB / 0.5578 GB, free: 3.852 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.132, allocations: 8.031 kB / 0.5578 GB, free: 3.844 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.848e-05/0.1321, allocations: 30.75 kB / 0.5578 GB, free: 3.805 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.787e-05/0.1321, allocations: 12.92 kB / 0.5578 GB, free: 3.793 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001281/0.1322, allocations: 172.3 kB / 0.558 GB, free: 3.586 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-06/0.1322, allocations: 4.375 kB / 0.558 GB, free: 3.582 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.269e-05/0.1323, allocations: 4.375 kB / 0.558 GB, free: 3.578 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001231/0.1324, allocations: 54.23 kB / 0.5581 GB, free: 3.52 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.1324, allocations: 11.88 kB / 0.5581 GB, free: 3.508 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-06/0.1324, allocations: 0 / 0.5581 GB, free: 3.508 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.094e-06/0.1324, allocations: 7.984 kB / 0.5581 GB, free: 3.5 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.931e-05/0.1325, allocations: 31.92 kB / 0.5581 GB, free: 3.469 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001837/0.1327, allocations: 169.6 kB / 0.5583 GB, free: 3.254 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002068/0.1329, allocations: 58.55 kB / 0.5583 GB, free: 3.188 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.789e-05/0.1329, allocations: 25.12 kB / 0.5583 GB, free: 3.16 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000264/0.1332, allocations: 105 kB / 0.5584 GB, free: 3.039 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.39e-05/0.1332, allocations: 30.56 kB / 0.5585 GB, free: 3 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.082e-06/0.1332, allocations: 0 / 0.5585 GB, free: 3 MB / 414.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.04312/0.1763, allocations: 2.577 MB / 0.561 GB, free: 396 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/0.1764, allocations: 59.41 kB / 0.561 GB, free: 324 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.818e-05/0.1765, allocations: 97.86 kB / 0.5611 GB, free: 216 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.787e-05/0.1765, allocations: 29.7 kB / 0.5612 GB, free: 180 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.767e-05/0.1766, allocations: 87.89 kB / 0.5613 GB, free: 88 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.065e-05/0.1766, allocations: 67.41 kB / 0.5613 GB, free: 20 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/0.1768, allocations: 61.69 kB / 0.5614 GB, free: 15.95 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1769, allocations: 326.7 kB / 0.5617 GB, free: 15.62 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004045/0.1773, allocations: 171.9 kB / 0.5618 GB, free: 15.46 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004086/0.1777, allocations: 178.1 kB / 0.562 GB, free: 15.29 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001091/0.1788, allocations: 423 kB / 0.5624 GB, free: 14.87 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.1788, allocations: 0 / 0.5624 GB, free: 14.87 MB / 430.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001118/0.1799, allocations: 461.3 kB / 0.5629 GB, free: 14.41 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.18, allocations: 8 kB / 0.5629 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.18, allocations: 0 / 0.5629 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.18, allocations: 0 / 0.5629 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003898/0.1804, allocations: 71.94 kB / 0.5629 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.1804, allocations: 4 kB / 0.5629 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002077/0.1806, allocations: 11.98 kB / 0.563 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.836e-05/0.1806, allocations: 20.23 kB / 0.563 GB, free: 14.3 MB / 430.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001395/0.1808, allocations: 125.7 kB / 0.5631 GB, free: 14.17 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.214e-05/0.1808, allocations: 8.422 kB / 0.5631 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001337/0.1821, allocations: 0.5408 MB / 0.5636 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-06/0.1822, allocations: 4 kB / 0.5636 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1822, allocations: 0 / 0.5636 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.1822, allocations: 0 / 0.5636 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002222/0.1844, allocations: 0.8853 MB / 0.5645 GB, free: 12.64 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.1844, allocations: 0 / 0.5645 GB, free: 12.64 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002965/0.1847, allocations: 72.12 kB / 0.5646 GB, free: 12.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.1847, allocations: 0 / 0.5646 GB, free: 12.57 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.461e-05/0.1847, allocations: 19.98 kB / 0.5646 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.853e-06/0.1847, allocations: 7.938 kB / 0.5646 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1847, allocations: 0 / 0.5646 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009791/0.1857, allocations: 479.4 kB / 0.5651 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.37e-05/0.1858, allocations: 89.06 kB / 0.5651 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.415e-05/0.1858, allocations: 4 kB / 0.5651 GB, free: 11.94 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002016/0.186, allocations: 19.97 kB / 0.5652 GB, free: 11.92 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.203e-05/0.186, allocations: 15.98 kB / 0.5652 GB, free: 11.91 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.423e-05/0.1861, allocations: 15.98 kB / 0.5652 GB, free: 11.89 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.845e-05/0.1861, allocations: 87.22 kB / 0.5653 GB, free: 11.8 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1861, allocations: 0 / 0.5653 GB, free: 11.8 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009803/0.1871, allocations: 327.5 kB / 0.5656 GB, free: 11.48 MB / 430.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002608/0.1897, allocations: 1.107 MB / 0.5667 GB, free: 10.33 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0009151/0.1906, allocations: 331.7 kB / 0.567 GB, free: 10.01 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.1906, allocations: 0 / 0.567 GB, free: 10.01 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003637/0.191, allocations: 144.2 kB / 0.5671 GB, free: 9.867 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002763/0.1913, allocations: 9.688 kB / 0.5671 GB, free: 9.859 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.1931, allocations: 0.4956 MB / 0.5676 GB, free: 9.305 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003406/0.1934, allocations: 0.6964 MB / 0.5683 GB, free: 8.578 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002841/0.1937, allocations: 101 kB / 0.5684 GB, free: 8.477 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002178/0.1939, allocations: 63.39 kB / 0.5684 GB, free: 8.414 MB / 430.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1939, allocations: 0 / 0.5684 GB, free: 8.414 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04349/0.2374, allocations: 18.99 MB / 0.587 GB, free: 5.539 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.81/8.047, allocations: 7.859 kB / 0.587 GB, free: 5.531 MB / 446.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.412026336882263] Failed to read output from testmodel.py, exit status != 0: ['time', 'x', 'y', 'yd', 'ydd', 'k1', 'k2', 'y2', 'y2d', 'y2dd'] 8.116779935080558 8.378127933 8.243762486 Calling exit ...