Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001855/0.001855, allocations: 121.3 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.001982/0.001982, allocations: 210.5 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.455/1.455, allocations: 230.2 MB / 254.5 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2234/0.2234, allocations: 46.9 MB / 357.4 MB, free: 10.46 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002269/0.002269, allocations: 75.88 kB / 0.4912 GB, free: 8.316 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1227, allocations: 65.99 MB / 0.5557 GB, free: 6.195 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001771/0.1244, allocations: 0.5456 MB / 0.5562 GB, free: 5.645 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007661/0.1252, allocations: 375.2 kB / 0.5566 GB, free: 5.277 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.03e-05/0.1252, allocations: 0 / 0.5566 GB, free: 5.277 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.973e-05/0.1252, allocations: 0 / 0.5566 GB, free: 5.277 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 3.357e-05/0.1253, allocations: 3.938 kB / 0.5566 GB, free: 5.273 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004051/0.1257, allocations: 99.64 kB / 0.5567 GB, free: 5.176 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.989e-05/0.1257, allocations: 31.92 kB / 0.5567 GB, free: 5.145 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.942e-05/0.1258, allocations: 4 kB / 0.5567 GB, free: 5.141 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.387e-05/0.1258, allocations: 19.91 kB / 0.5567 GB, free: 5.121 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.108e-05/0.1259, allocations: 19.86 kB / 0.5567 GB, free: 5.102 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.137e-05/0.1259, allocations: 0 / 0.5567 GB, free: 5.102 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002191/0.1261, allocations: 115.9 kB / 0.5568 GB, free: 4.988 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.632e-05/0.1261, allocations: 7.984 kB / 0.5569 GB, free: 4.98 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.377e-05/0.1261, allocations: 15.88 kB / 0.5569 GB, free: 4.965 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001662/0.1263, allocations: 95.67 kB / 0.557 GB, free: 4.871 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1263, allocations: 0 / 0.557 GB, free: 4.871 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1263, allocations: 4 kB / 0.557 GB, free: 4.867 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.1263, allocations: 0 / 0.557 GB, free: 4.867 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.0004459/0.1267, allocations: 371.1 kB / 0.5573 GB, free: 4.453 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.1268, allocations: 8.031 kB / 0.5573 GB, free: 4.445 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.166e-05/0.1268, allocations: 34.75 kB / 0.5574 GB, free: 4.402 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.528e-05/0.1269, allocations: 4.938 kB / 0.5574 GB, free: 4.398 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.127, allocations: 172.3 kB / 0.5575 GB, free: 4.191 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.004e-05/0.127, allocations: 384 / 0.5575 GB, free: 4.191 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.964e-05/0.127, allocations: 4.375 kB / 0.5575 GB, free: 4.188 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001241/0.1271, allocations: 62.12 kB / 0.5576 GB, free: 4.121 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.1272, allocations: 7.938 kB / 0.5576 GB, free: 4.113 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/0.1272, allocations: 3.984 kB / 0.5576 GB, free: 4.109 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.1272, allocations: 0 / 0.5576 GB, free: 4.109 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.806e-05/0.1272, allocations: 27.98 kB / 0.5576 GB, free: 4.082 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002243/0.1275, allocations: 169.5 kB / 0.5578 GB, free: 3.867 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000208/0.1277, allocations: 58.58 kB / 0.5578 GB, free: 3.801 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.705e-05/0.1277, allocations: 24.86 kB / 0.5579 GB, free: 3.773 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002484/0.128, allocations: 105.1 kB / 0.558 GB, free: 3.652 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.128, allocations: 34.56 kB / 0.558 GB, free: 3.609 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.112e-06/0.128, allocations: 0 / 0.558 GB, free: 3.609 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.0397/0.1677, allocations: 2.574 MB / 0.5605 GB, free: 1 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.271e-05/0.1677, allocations: 55.41 kB / 0.5606 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.1678, allocations: 106.3 kB / 0.5607 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.524e-05/0.1679, allocations: 33.7 kB / 0.5607 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.661e-05/0.1679, allocations: 83.89 kB / 0.5608 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.582e-05/0.168, allocations: 67.42 kB / 0.5608 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/0.1681, allocations: 61.62 kB / 0.5609 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.1683, allocations: 330.7 kB / 0.5612 GB, free: 236 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003789/0.1687, allocations: 163.9 kB / 0.5614 GB, free: 72 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003881/0.169, allocations: 186.4 kB / 0.5616 GB, free: 15.89 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/0.1701, allocations: 412.7 kB / 0.5619 GB, free: 15.48 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.1701, allocations: 4 kB / 0.562 GB, free: 15.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001036/0.1711, allocations: 458.6 kB / 0.5624 GB, free: 15.03 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.1711, allocations: 7.984 kB / 0.5624 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.1711, allocations: 0 / 0.5624 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.1711, allocations: 4 kB / 0.5624 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003729/0.1715, allocations: 79.88 kB / 0.5625 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.1715, allocations: 0 / 0.5625 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000198/0.1717, allocations: 11.98 kB / 0.5625 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.816e-05/0.1717, allocations: 23.98 kB / 0.5625 GB, free: 14.9 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.0001315/0.1719, allocations: 113.8 kB / 0.5626 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.834e-05/0.1719, allocations: 7.953 kB / 0.5626 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001246/0.1732, allocations: 0.5451 MB / 0.5632 GB, free: 14.22 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.1732, allocations: 0 / 0.5632 GB, free: 14.22 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1732, allocations: 0 / 0.5632 GB, free: 14.22 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.1732, allocations: 4 kB / 0.5632 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002175/0.1754, allocations: 0.8845 MB / 0.564 GB, free: 13.26 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.423e-06/0.1754, allocations: 4.25 kB / 0.564 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002919/0.1757, allocations: 71.88 kB / 0.5641 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.1757, allocations: 4 kB / 0.5641 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.022e-05/0.1757, allocations: 20.17 kB / 0.5641 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.1757, allocations: 4 kB / 0.5641 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.1757, allocations: 4 kB / 0.5641 GB, free: 13.15 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009257/0.1766, allocations: 471.1 kB / 0.5646 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.23e-05/0.1767, allocations: 85.06 kB / 0.5647 GB, free: 12.56 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.687e-05/0.1767, allocations: 8 kB / 0.5647 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.1769, allocations: 23.97 kB / 0.5647 GB, free: 12.53 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.562e-05/0.1769, allocations: 11.98 kB / 0.5647 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.968e-05/0.177, allocations: 23.92 kB / 0.5647 GB, free: 12.49 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.314e-05/0.177, allocations: 83.28 kB / 0.5648 GB, free: 12.41 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.177, allocations: 3.938 kB / 0.5648 GB, free: 12.41 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0008393/0.1779, allocations: 319.5 kB / 0.5651 GB, free: 12.09 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.002361/0.1802, allocations: 1.107 MB / 0.5662 GB, free: 10.94 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0008244/0.1811, allocations: 327.7 kB / 0.5665 GB, free: 10.62 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1811, allocations: 0 / 0.5665 GB, free: 10.62 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003361/0.1814, allocations: 139.8 kB / 0.5666 GB, free: 10.48 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000269/0.1817, allocations: 11.94 kB / 0.5667 GB, free: 10.47 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0017/0.1834, allocations: 0.5018 MB / 0.5671 GB, free: 9.914 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003532/0.1837, allocations: 0.7003 MB / 0.5678 GB, free: 9.184 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002822/0.184, allocations: 92.88 kB / 0.5679 GB, free: 9.09 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001832/0.1842, allocations: 59.39 kB / 0.568 GB, free: 9.031 MB / 430.1 MB Notification: Performance of SimCode: time 7.72e-07/0.1842, allocations: 0 / 0.568 GB, free: 9.031 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0447/0.2289, allocations: 18.98 MB / 0.5865 GB, free: 6.137 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.796/8.025, allocations: 3.938 kB / 0.5865 GB, free: 6.133 MB / 446.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.191861094906926]