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.001691/0.001691, allocations: 120.4 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.002036/0.002036, allocations: 208.9 kB / 21.46 MB, free: 1.625 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.493/1.493, allocations: 230.2 MB / 254.5 MB, free: 15.26 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.2556/0.2556, allocations: 46.88 MB / 357.4 MB, free: 10.52 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.002302/0.002302, allocations: 83.86 kB / 0.4912 GB, free: 8.688 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1364, allocations: 65.98 MB / 0.5556 GB, free: 6.578 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001814/0.1382, allocations: 0.5375 MB / 0.5562 GB, free: 6.035 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007915/0.139, allocations: 375.2 kB / 0.5565 GB, free: 5.668 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.772e-05/0.139, allocations: 8 kB / 0.5565 GB, free: 5.66 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.995e-05/0.1391, allocations: 3.938 kB / 0.5565 GB, free: 5.656 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.493e-05/0.1391, allocations: 0 / 0.5565 GB, free: 5.656 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004562/0.1396, allocations: 91.66 kB / 0.5566 GB, free: 5.566 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 8.142e-05/0.1396, allocations: 35.84 kB / 0.5567 GB, free: 5.531 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.534e-05/0.1397, allocations: 8 kB / 0.5567 GB, free: 5.523 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.727e-05/0.1397, allocations: 11.92 kB / 0.5567 GB, free: 5.512 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.456e-05/0.1398, allocations: 19.92 kB / 0.5567 GB, free: 5.492 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.367e-05/0.1398, allocations: 4 kB / 0.5567 GB, free: 5.488 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002724/0.1401, allocations: 119.9 kB / 0.5568 GB, free: 5.371 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.56e-05/0.1401, allocations: 4 kB / 0.5568 GB, free: 5.367 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.945e-05/0.1401, allocations: 15.88 kB / 0.5568 GB, free: 5.352 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001924/0.1403, allocations: 103.6 kB / 0.5569 GB, free: 5.25 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1403, allocations: 0 / 0.5569 GB, free: 5.25 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1403, allocations: 0 / 0.5569 GB, free: 5.25 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.1403, allocations: 0 / 0.5569 GB, free: 5.25 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.0005246/0.1408, allocations: 371.1 kB / 0.5573 GB, free: 4.836 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.1409, allocations: 12.03 kB / 0.5573 GB, free: 4.824 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.75e-05/0.1409, allocations: 42.73 kB / 0.5573 GB, free: 4.773 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.695e-05/0.141, allocations: 0.9375 kB / 0.5573 GB, free: 4.773 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001605/0.1411, allocations: 168.3 kB / 0.5575 GB, free: 4.57 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.306e-06/0.1411, allocations: 384 / 0.5575 GB, free: 4.57 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.981e-05/0.1412, allocations: 8.312 kB / 0.5575 GB, free: 4.562 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001384/0.1413, allocations: 54.23 kB / 0.5576 GB, free: 4.504 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.1413, allocations: 3.938 kB / 0.5576 GB, free: 4.5 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.1413, allocations: 7.938 kB / 0.5576 GB, free: 4.492 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.002e-06/0.1413, allocations: 4 kB / 0.5576 GB, free: 4.488 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.032e-05/0.1414, allocations: 27.98 kB / 0.5576 GB, free: 4.461 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002123/0.1416, allocations: 173.5 kB / 0.5578 GB, free: 4.242 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002213/0.1418, allocations: 50.56 kB / 0.5578 GB, free: 4.184 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.235e-05/0.1419, allocations: 24.84 kB / 0.5578 GB, free: 4.156 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002756/0.1422, allocations: 101.1 kB / 0.5579 GB, free: 4.039 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.838e-05/0.1422, allocations: 38.55 kB / 0.558 GB, free: 3.992 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.683e-06/0.1422, allocations: 0 / 0.558 GB, free: 3.992 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.04285/0.1851, allocations: 2.573 MB / 0.5605 GB, free: 1.383 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.013e-05/0.1851, allocations: 59.41 kB / 0.5605 GB, free: 1.312 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.612e-05/0.1852, allocations: 97.86 kB / 0.5606 GB, free: 1.207 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.928e-05/0.1852, allocations: 33.64 kB / 0.5607 GB, free: 1.168 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.644e-05/0.1853, allocations: 91.88 kB / 0.5608 GB, free: 1.074 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.509e-05/0.1854, allocations: 67.42 kB / 0.5608 GB, free: 1.008 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001278/0.1855, allocations: 61.69 kB / 0.5609 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.1856, allocations: 322.8 kB / 0.5612 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003874/0.186, allocations: 171.8 kB / 0.5613 GB, free: 460 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003848/0.1864, allocations: 175.9 kB / 0.5615 GB, free: 284 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001054/0.1875, allocations: 422.8 kB / 0.5619 GB, free: 15.86 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1875, allocations: 0 / 0.5619 GB, free: 15.86 MB / 430.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001081/0.1885, allocations: 468 kB / 0.5624 GB, free: 15.4 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.1886, allocations: 4 kB / 0.5624 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1886, allocations: 0 / 0.5624 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.1886, allocations: 0 / 0.5624 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003924/0.189, allocations: 75.88 kB / 0.5624 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.828e-06/0.189, allocations: 4 kB / 0.5624 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002103/0.1892, allocations: 15.98 kB / 0.5625 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.87e-05/0.1892, allocations: 19.98 kB / 0.5625 GB, free: 15.28 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.0001449/0.1894, allocations: 121.7 kB / 0.5626 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.31e-05/0.1894, allocations: 11.94 kB / 0.5626 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001305/0.1907, allocations: 0.5412 MB / 0.5631 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.1907, allocations: 0 / 0.5631 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1907, allocations: 0 / 0.5631 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.1908, allocations: 0 / 0.5631 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002245/0.193, allocations: 0.8773 MB / 0.564 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.193, allocations: 3.938 kB / 0.564 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002955/0.1933, allocations: 71.88 kB / 0.5641 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.179e-06/0.1933, allocations: 0 / 0.5641 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.811e-05/0.1933, allocations: 19.98 kB / 0.5641 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.1933, allocations: 4 kB / 0.5641 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.1933, allocations: 0 / 0.5641 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009451/0.1943, allocations: 477.1 kB / 0.5645 GB, free: 13.05 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.28e-05/0.1943, allocations: 85.06 kB / 0.5646 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.906e-05/0.1944, allocations: 12 kB / 0.5646 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002066/0.1946, allocations: 15.97 kB / 0.5646 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.74e-05/0.1946, allocations: 19.92 kB / 0.5647 GB, free: 12.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.943e-05/0.1947, allocations: 19.98 kB / 0.5647 GB, free: 12.88 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.337e-05/0.1947, allocations: 83.28 kB / 0.5648 GB, free: 12.8 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1947, allocations: 3.938 kB / 0.5648 GB, free: 12.79 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0008955/0.1956, allocations: 327.5 kB / 0.5651 GB, free: 12.47 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.002436/0.198, allocations: 1.114 MB / 0.5662 GB, free: 11.32 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0008528/0.1989, allocations: 323.7 kB / 0.5665 GB, free: 11 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.1989, allocations: 0 / 0.5665 GB, free: 11 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003601/0.1993, allocations: 143.8 kB / 0.5666 GB, free: 10.86 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002835/0.1995, allocations: 8 kB / 0.5666 GB, free: 10.85 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001916/0.2015, allocations: 0.5036 MB / 0.5671 GB, free: 10.29 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/0.2018, allocations: 0.7004 MB / 0.5678 GB, free: 9.559 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002961/0.2021, allocations: 88.89 kB / 0.5679 GB, free: 9.469 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001963/0.2023, allocations: 59.39 kB / 0.5679 GB, free: 9.41 MB / 430.1 MB Notification: Performance of SimCode: time 1.343e-06/0.2023, allocations: 0 / 0.5679 GB, free: 9.41 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04805/0.2504, allocations: 18.99 MB / 0.5865 GB, free: 6.535 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.117/8.367, allocations: 4 kB / 0.5865 GB, free: 6.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.597270258702338] Failed to read output from testmodel.py, exit status != 0: ['time', 'x', 'y', 'yd', 'ydd', 'k1', 'k2', 'y2', 'y2d', 'y2dd'] 8.438352197874337 8.702247468 8.55919535 Calling exit ...