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.001781/0.001781, allocations: 105.7 kB / 20.42 MB, free: 1.684 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.002239/0.002239, allocations: 221 kB / 23.72 MB, free: 5.051 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.448/1.448, allocations: 230.2 MB / 257.1 MB, free: 8.492 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.2337/0.2337, allocations: 46.89 MB / 360.3 MB, free: 4.641 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.002228/0.002228, allocations: 79.88 kB / 0.4955 GB, free: 8.344 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.368/0.3702, allocations: 65.99 MB / 0.56 GB, free: 4.941 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001694/0.3719, allocations: 0.533 MB / 0.5605 GB, free: 4.414 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007511/0.3727, allocations: 370.7 kB / 0.5608 GB, free: 4.051 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.901e-05/0.3727, allocations: 0 / 0.5608 GB, free: 4.051 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.917e-05/0.3727, allocations: 7.938 kB / 0.5609 GB, free: 4.043 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.402e-05/0.3727, allocations: 3.938 kB / 0.5609 GB, free: 4.039 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004069/0.3732, allocations: 107.4 kB / 0.561 GB, free: 3.938 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.564e-05/0.3732, allocations: 27.92 kB / 0.561 GB, free: 3.91 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.259e-05/0.3733, allocations: 3.984 kB / 0.561 GB, free: 3.906 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.378e-05/0.3733, allocations: 11.94 kB / 0.561 GB, free: 3.895 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.052e-05/0.3733, allocations: 19.91 kB / 0.561 GB, free: 3.875 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.3e-05/0.3734, allocations: 0 / 0.561 GB, free: 3.875 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002222/0.3736, allocations: 123.9 kB / 0.5611 GB, free: 3.754 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.056e-05/0.3736, allocations: 11.98 kB / 0.5611 GB, free: 3.742 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.53e-05/0.3736, allocations: 15.88 kB / 0.5612 GB, free: 3.727 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001728/0.3738, allocations: 89.7 kB / 0.5612 GB, free: 3.641 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3738, allocations: 0 / 0.5612 GB, free: 3.641 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.3738, allocations: 0 / 0.5612 GB, free: 3.641 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.3738, allocations: 4 kB / 0.5613 GB, free: 3.637 MB / 398.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.00048/0.3743, allocations: 363.1 kB / 0.5616 GB, free: 3.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.3743, allocations: 12.03 kB / 0.5616 GB, free: 3.219 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.959e-05/0.3744, allocations: 38.67 kB / 0.5616 GB, free: 3.172 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.828e-05/0.3744, allocations: 12.94 kB / 0.5617 GB, free: 3.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.3745, allocations: 168.3 kB / 0.5618 GB, free: 2.957 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.3746, allocations: 8.375 kB / 0.5618 GB, free: 2.949 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.964e-05/0.3746, allocations: 4.312 kB / 0.5618 GB, free: 2.945 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001318/0.3747, allocations: 54.23 kB / 0.5619 GB, free: 2.887 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.3747, allocations: 7.938 kB / 0.5619 GB, free: 2.879 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.175e-06/0.3747, allocations: 0 / 0.5619 GB, free: 2.879 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.3747, allocations: 3.938 kB / 0.5619 GB, free: 2.875 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.611e-05/0.3748, allocations: 27.98 kB / 0.5619 GB, free: 2.848 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001913/0.375, allocations: 177.6 kB / 0.5621 GB, free: 2.625 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000216/0.3752, allocations: 50.56 kB / 0.5621 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.619e-05/0.3753, allocations: 25.06 kB / 0.5622 GB, free: 2.539 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002579/0.3755, allocations: 109 kB / 0.5623 GB, free: 2.414 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.628e-05/0.3756, allocations: 34.56 kB / 0.5623 GB, free: 2.371 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.132e-06/0.3756, allocations: 4 kB / 0.5623 GB, free: 2.367 MB / 398.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.04122/0.4168, allocations: 2.57 MB / 0.5648 GB, free: 15.76 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.641e-05/0.4168, allocations: 51.41 kB / 0.5649 GB, free: 15.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.222e-05/0.4169, allocations: 105.8 kB / 0.565 GB, free: 15.58 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.43e-05/0.417, allocations: 29.7 kB / 0.565 GB, free: 15.55 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.444e-05/0.417, allocations: 83.89 kB / 0.5651 GB, free: 15.46 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.139e-05/0.4171, allocations: 67.38 kB / 0.5651 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001341/0.4172, allocations: 57.69 kB / 0.5652 GB, free: 15.33 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.4174, allocations: 331.2 kB / 0.5655 GB, free: 15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003908/0.4178, allocations: 167.9 kB / 0.5657 GB, free: 14.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003787/0.4181, allocations: 175.9 kB / 0.5658 GB, free: 14.66 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00103/0.4192, allocations: 418.7 kB / 0.5662 GB, free: 14.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.4192, allocations: 0 / 0.5662 GB, free: 14.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001073/0.4202, allocations: 470.6 kB / 0.5667 GB, free: 13.79 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.4203, allocations: 8 kB / 0.5667 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.4203, allocations: 0 / 0.5667 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.4203, allocations: 0 / 0.5667 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003957/0.4207, allocations: 71.94 kB / 0.5668 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.4207, allocations: 256 / 0.5668 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002101/0.4209, allocations: 15.97 kB / 0.5668 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.084e-05/0.4209, allocations: 31.94 kB / 0.5668 GB, free: 13.66 MB / 414.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.0001331/0.4211, allocations: 121.8 kB / 0.5669 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.601e-05/0.4211, allocations: 7.953 kB / 0.5669 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00127/0.4224, allocations: 0.5367 MB / 0.5675 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.4224, allocations: 4 kB / 0.5675 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.4224, allocations: 4 kB / 0.5675 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.4224, allocations: 3.984 kB / 0.5675 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002195/0.4246, allocations: 0.8777 MB / 0.5683 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.4246, allocations: 8.031 kB / 0.5683 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002874/0.4249, allocations: 59.95 kB / 0.5684 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.113e-06/0.4249, allocations: 7.938 kB / 0.5684 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.152e-05/0.4249, allocations: 19.98 kB / 0.5684 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.4249, allocations: 0 / 0.5684 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.4249, allocations: 4 kB / 0.5684 GB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009872/0.4259, allocations: 466.5 kB / 0.5689 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.288e-05/0.426, allocations: 85.06 kB / 0.5689 GB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.243e-05/0.426, allocations: 11.98 kB / 0.569 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002112/0.4262, allocations: 15.98 kB / 0.569 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.427e-05/0.4263, allocations: 15.92 kB / 0.569 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.231e-05/0.4263, allocations: 19.98 kB / 0.569 GB, free: 11.27 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.525e-05/0.4263, allocations: 87.28 kB / 0.5691 GB, free: 11.18 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4263, allocations: 0 / 0.5691 GB, free: 11.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009303/0.4273, allocations: 319.5 kB / 0.5694 GB, free: 10.87 MB / 414.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.002536/0.4298, allocations: 1.119 MB / 0.5705 GB, free: 9.703 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008384/0.4307, allocations: 327 kB / 0.5708 GB, free: 9.387 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4307, allocations: 0 / 0.5708 GB, free: 9.387 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003532/0.431, allocations: 144.2 kB / 0.5709 GB, free: 9.246 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002882/0.4313, allocations: 11.98 kB / 0.5709 GB, free: 9.234 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001858/0.4332, allocations: 0.5071 MB / 0.5714 GB, free: 8.668 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003332/0.4335, allocations: 0.7004 MB / 0.5721 GB, free: 7.938 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002746/0.4338, allocations: 97.06 kB / 0.5722 GB, free: 7.84 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001968/0.434, allocations: 55.41 kB / 0.5723 GB, free: 7.785 MB / 414.1 MB Notification: Performance of SimCode: time 8.11e-07/0.434, allocations: 3.938 kB / 0.5723 GB, free: 7.781 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04762/0.4816, allocations: 19.06 MB / 0.5909 GB, free: 4.789 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.132/8.614, allocations: 3.938 kB / 0.5909 GB, free: 4.785 MB / 430.1 MB " [Timeout remaining time 651] (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.47357673291117] Failed to read output from testmodel.py, exit status != 0: ['time', 'x', 'y', 'yd', 'ydd', 'k1', 'k2', 'y2', 'y2d', 'y2dd'] 8.689959899988025 8.715608942 8.336456446 Calling exit ...