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: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 101.1 kB / 16.26 MB, free: 5.93 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.0009975/0.0009975, allocations: 190.9 kB / 17.2 MB, free: 5.574 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.242/1.242, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.1757/0.1757, allocations: 43.52 MB / 313.9 MB, free: 0.5195 MB / 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.00134/0.00134, allocations: 62.05 kB / 382.8 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06919/0.07055, allocations: 57.79 MB / 440.6 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001505/0.07208, allocations: 0.5419 MB / 441.2 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005112/0.07262, allocations: 367.1 kB / 441.5 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.572e-05/0.07266, allocations: 0 / 441.5 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.141e-05/0.07268, allocations: 0 / 441.5 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.068e-05/0.07272, allocations: 7.875 kB / 441.5 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003528/0.07308, allocations: 111.9 kB / 441.6 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.693e-05/0.07314, allocations: 31.91 kB / 441.7 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.137e-05/0.07319, allocations: 4 kB / 441.7 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.811e-05/0.07321, allocations: 7.938 kB / 441.7 MB, free: 5.727 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.357e-05/0.07326, allocations: 19.91 kB / 441.7 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.214e-05/0.07327, allocations: 4 kB / 441.7 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001678/0.07345, allocations: 115.9 kB / 441.8 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.21e-05/0.07347, allocations: 11.92 kB / 441.8 MB, free: 5.578 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.029e-05/0.07349, allocations: 19.86 kB / 441.8 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001339/0.07363, allocations: 95.81 kB / 441.9 MB, free: 5.465 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.07364, allocations: 0 / 441.9 MB, free: 5.465 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.07365, allocations: 0 / 441.9 MB, free: 5.465 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.07365, allocations: 0 / 441.9 MB, free: 5.465 MB / 318.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.0003131/0.07397, allocations: 363.4 kB / 442.3 MB, free: 5.059 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.07401, allocations: 11.89 kB / 442.3 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.316e-05/0.07404, allocations: 30.75 kB / 442.3 MB, free: 5.008 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.501e-05/0.07407, allocations: 4.938 kB / 442.3 MB, free: 5.004 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.166e-05/0.07415, allocations: 168.3 kB / 442.5 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.434e-06/0.07416, allocations: 8.375 kB / 442.5 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.145e-05/0.07419, allocations: 4.375 kB / 442.5 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001082/0.0743, allocations: 62.11 kB / 442.6 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.07432, allocations: 3.938 kB / 442.6 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.215e-06/0.07433, allocations: 0 / 442.6 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.07434, allocations: 0 / 442.6 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.739e-05/0.0744, allocations: 27.98 kB / 442.6 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001292/0.07454, allocations: 177.6 kB / 442.8 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001824/0.07472, allocations: 62.59 kB / 442.8 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.796e-05/0.07477, allocations: 28.84 kB / 442.9 MB, free: 4.367 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002208/0.075, allocations: 109.1 kB / 443 MB, free: 4.242 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.23e-05/0.07502, allocations: 30.56 kB / 443 MB, free: 4.203 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.052e-06/0.07502, allocations: 0 / 443 MB, free: 4.203 MB / 318.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.03878/0.1138, allocations: 2.58 MB / 445.6 MB, free: 1.586 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.729e-05/0.1139, allocations: 55.41 kB / 445.6 MB, free: 1.52 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.028e-05/0.1139, allocations: 105.8 kB / 445.7 MB, free: 1.406 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.687e-05/0.114, allocations: 25.7 kB / 445.8 MB, free: 1.375 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.989e-05/0.114, allocations: 84.14 kB / 445.9 MB, free: 1.289 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.179e-05/0.1141, allocations: 59.11 kB / 445.9 MB, free: 1.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.1142, allocations: 57.62 kB / 446 MB, free: 1.168 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.392e-05/0.1142, allocations: 326.8 kB / 446.3 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000315/0.1145, allocations: 179.9 kB / 446.5 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003036/0.1149, allocations: 178.9 kB / 446.6 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008406/0.1157, allocations: 412.7 kB / 447 MB, free: 88 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.1157, allocations: 4 kB / 447 MB, free: 84 kB / 318.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009688/0.1167, allocations: 453.9 kB / 447.5 MB, free: 15.63 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.1167, allocations: 8 kB / 447.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.1167, allocations: 4 kB / 447.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.1168, allocations: 0 / 447.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003564/0.1171, allocations: 71.88 kB / 447.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.1171, allocations: 3.938 kB / 447.6 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002114/0.1174, allocations: 23.97 kB / 447.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.435e-05/0.1174, allocations: 15.98 kB / 447.6 MB, free: 15.5 MB / 334.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.0001099/0.1175, allocations: 130.8 kB / 447.7 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.91e-05/0.1176, allocations: 7.906 kB / 447.8 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001225/0.1188, allocations: 0.5443 MB / 448.3 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.1188, allocations: 4 kB / 448.3 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.1188, allocations: 0 / 448.3 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.1188, allocations: 3.984 kB / 448.3 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001967/0.1208, allocations: 0.8811 MB / 449.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.1208, allocations: 4.188 kB / 449.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002615/0.1211, allocations: 67.89 kB / 449.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.1211, allocations: 4 kB / 449.3 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.673e-05/0.1211, allocations: 19.98 kB / 449.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.1211, allocations: 0 / 449.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.1211, allocations: 4 kB / 449.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000821/0.122, allocations: 464.2 kB / 449.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.495e-05/0.122, allocations: 89 kB / 449.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.747e-05/0.1221, allocations: 4 kB / 449.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001925/0.1223, allocations: 23.92 kB / 449.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.63e-05/0.1223, allocations: 11.98 kB / 449.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.566e-05/0.1223, allocations: 19.98 kB / 449.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.019e-05/0.1224, allocations: 79.28 kB / 450 MB, free: 13.03 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1224, allocations: 4 kB / 450 MB, free: 13.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007735/0.1231, allocations: 323.8 kB / 450.3 MB, free: 12.71 MB / 334.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.002172/0.1253, allocations: 1.115 MB / 451.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007533/0.1261, allocations: 347.2 kB / 451.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1261, allocations: 0 / 451.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003314/0.1264, allocations: 156.1 kB / 451.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002545/0.1267, allocations: 8 kB / 451.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001588/0.1283, allocations: 495.9 kB / 452.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000206/0.1285, allocations: 0.7004 MB / 453.1 MB, free: 9.777 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003331/0.1289, allocations: 92.88 kB / 453.2 MB, free: 9.684 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001832/0.129, allocations: 59.41 kB / 453.2 MB, free: 9.625 MB / 334.1 MB Notification: Performance of SimCode: time 3e-07/0.129, allocations: 0 / 453.2 MB, free: 9.625 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.125/1.254, allocations: 18.92 MB / 472.1 MB, free: 6.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.928/9.182, allocations: 19.8 kB / 472.2 MB, free: 6.641 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins1/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