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: translateModel(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001487/0.001487, allocations: 101.7 kB / 16.4 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.426/1.426, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2022/0.2022, allocations: 43.52 MB / 314.1 MB, free: 444 kB / 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.001494/0.001495, allocations: 67.89 kB / 441.8 MB, free: 5.652 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1049, allocations: 57.78 MB / 499.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.00217/0.1071, allocations: 0.5452 MB / 0.4884 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007906/0.1079, allocations: 365.6 kB / 0.4887 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.198e-05/0.108, allocations: 0 / 0.4887 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.294e-05/0.1081, allocations: 3.938 kB / 0.4888 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.548e-05/0.1081, allocations: 7.875 kB / 0.4888 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005331/0.1086, allocations: 119.6 kB / 0.4889 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.996e-05/0.1087, allocations: 19.98 kB / 0.4889 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.86e-05/0.1087, allocations: 0 / 0.4889 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.326e-05/0.1088, allocations: 15.92 kB / 0.4889 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.684e-05/0.1088, allocations: 19.91 kB / 0.4889 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.212e-05/0.1089, allocations: 0 / 0.4889 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002205/0.1091, allocations: 111.9 kB / 0.489 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.985e-05/0.1091, allocations: 11.97 kB / 0.489 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.495e-05/0.1091, allocations: 19.88 kB / 0.4891 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001758/0.1093, allocations: 91.81 kB / 0.4892 GB, free: 10.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.1093, allocations: 4 kB / 0.4892 GB, free: 10.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1093, allocations: 0 / 0.4892 GB, free: 10.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.1094, allocations: 0 / 0.4892 GB, free: 10.48 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.0004158/0.1098, allocations: 367.2 kB / 0.4895 GB, free: 10.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.1098, allocations: 11.97 kB / 0.4895 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.532e-05/0.1099, allocations: 4.938 kB / 0.4895 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001232/0.11, allocations: 172.3 kB / 0.4897 GB, free: 9.848 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.11, allocations: 12.38 kB / 0.4897 GB, free: 9.836 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.382e-05/0.11, allocations: 4.375 kB / 0.4897 GB, free: 9.832 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000122/0.1102, allocations: 54.19 kB / 0.4898 GB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.1102, allocations: 192 / 0.4898 GB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.1102, allocations: 3.938 kB / 0.4898 GB, free: 9.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.1102, allocations: 4 kB / 0.4898 GB, free: 9.766 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.467e-05/0.1103, allocations: 31.91 kB / 0.4898 GB, free: 9.734 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001747/0.1105, allocations: 169.6 kB / 0.49 GB, free: 9.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002297/0.1107, allocations: 62.55 kB / 0.49 GB, free: 9.449 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.557e-05/0.1108, allocations: 25.08 kB / 0.49 GB, free: 9.422 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002401/0.111, allocations: 105.1 kB / 0.4901 GB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.956e-05/0.1111, allocations: 34.56 kB / 0.4902 GB, free: 9.258 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.443e-06/0.1111, allocations: 0 / 0.4902 GB, free: 9.258 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.03938/0.1504, allocations: 2.594 MB / 0.4927 GB, free: 6.629 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.902e-05/0.1505, allocations: 55.41 kB / 0.4928 GB, free: 6.562 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.204e-05/0.1506, allocations: 101.8 kB / 0.4929 GB, free: 6.453 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.141e-05/0.1507, allocations: 29.7 kB / 0.4929 GB, free: 6.418 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.178e-05/0.1507, allocations: 80.14 kB / 0.493 GB, free: 6.336 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.848e-05/0.1508, allocations: 67.09 kB / 0.493 GB, free: 6.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.1509, allocations: 57.69 kB / 0.4931 GB, free: 6.207 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.151, allocations: 318.8 kB / 0.4934 GB, free: 5.887 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003655/0.1514, allocations: 179.9 kB / 0.4936 GB, free: 5.711 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003515/0.1518, allocations: 171.9 kB / 0.4937 GB, free: 5.543 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009726/0.1527, allocations: 416.7 kB / 0.4941 GB, free: 5.133 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1527, allocations: 0 / 0.4941 GB, free: 5.133 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009861/0.1537, allocations: 464.8 kB / 0.4946 GB, free: 4.676 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.1538, allocations: 4 kB / 0.4946 GB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.1538, allocations: 7.984 kB / 0.4946 GB, free: 4.664 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.1538, allocations: 3.984 kB / 0.4946 GB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003644/0.1542, allocations: 67.94 kB / 0.4946 GB, free: 4.594 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.1542, allocations: 0 / 0.4946 GB, free: 4.594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001954/0.1544, allocations: 15.98 kB / 0.4947 GB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.213e-05/0.1544, allocations: 19.98 kB / 0.4947 GB, free: 4.559 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001342/0.1546, allocations: 129.7 kB / 0.4948 GB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.113e-05/0.1546, allocations: 7.906 kB / 0.4948 GB, free: 4.414 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001213/0.1559, allocations: 0.5368 MB / 0.4953 GB, free: 3.867 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.1559, allocations: 7.938 kB / 0.4953 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1559, allocations: 0 / 0.4953 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.1559, allocations: 0 / 0.4953 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002119/0.158, allocations: 0.8891 MB / 0.4962 GB, free: 2.895 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.158, allocations: 256 / 0.4962 GB, free: 2.895 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002903/0.1583, allocations: 80.12 kB / 0.4963 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.1583, allocations: 0 / 0.4963 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.377e-05/0.1584, allocations: 19.92 kB / 0.4963 GB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.848e-06/0.1584, allocations: 7.938 kB / 0.4963 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.1584, allocations: 0 / 0.4963 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008989/0.1593, allocations: 468.2 kB / 0.4968 GB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.403e-05/0.1594, allocations: 85.02 kB / 0.4968 GB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.204e-05/0.1594, allocations: 8 kB / 0.4968 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001975/0.1596, allocations: 24.44 kB / 0.4969 GB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.547e-05/0.1597, allocations: 11.98 kB / 0.4969 GB, free: 2.152 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.15e-05/0.1597, allocations: 12 kB / 0.4969 GB, free: 2.141 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.473e-05/0.1597, allocations: 87.27 kB / 0.497 GB, free: 2.055 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1597, allocations: 0 / 0.497 GB, free: 2.055 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008823/0.1606, allocations: 315.9 kB / 0.4973 GB, free: 1.746 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 (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.001235/0.1619, allocations: 243 kB / 0.4975 GB, free: 1.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007753/0.1627, allocations: 347.1 kB / 0.4978 GB, free: 1.164 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1627, allocations: 4 kB / 0.4978 GB, free: 1.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003264/0.163, allocations: 147.8 kB / 0.498 GB, free: 1.016 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002615/0.1633, allocations: 8 kB / 0.498 GB, free: 1.008 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001195/0.1645, allocations: 410.9 kB / 0.4984 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002642/0.1648, allocations: 0.6926 MB / 0.4991 GB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002729/0.165, allocations: 92.88 kB / 0.4991 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001686/0.1652, allocations: 47.41 kB / 0.4992 GB, free: 15.7 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1652, allocations: 0 / 0.4992 GB, free: 15.7 MB / 398.1 MB Notification: Performance of Templates: time 0.02312/0.1884, allocations: 17.79 MB / 0.5166 GB, free: 13.83 MB / 414.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches