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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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: 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_trunk_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_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001551/0.001551, allocations: 113.7 kB / 18.46 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001894/0.001894, allocations: 206.7 kB / 19.4 MB, free: 3.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2291/0.2291, allocations: 46.11 MB / 345 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 79.88 kB / 482 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3683/0.3696, allocations: 62.44 MB / 0.5316 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001749/0.3714, allocations: 0.5329 MB / 0.5322 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007748/0.3722, allocations: 368 kB / 0.5325 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.207e-05/0.3723, allocations: 4 kB / 0.5325 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.867e-05/0.3723, allocations: 3.938 kB / 0.5325 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.276e-05/0.3724, allocations: 5.938 kB / 0.5325 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004471/0.3728, allocations: 105.2 kB / 0.5326 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.249e-05/0.3729, allocations: 24.89 kB / 0.5327 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.165e-05/0.373, allocations: 1.625 kB / 0.5327 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.544e-05/0.373, allocations: 13.98 kB / 0.5327 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.265e-05/0.3731, allocations: 16.42 kB / 0.5327 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.449e-05/0.3731, allocations: 7.062 kB / 0.5327 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002357/0.3733, allocations: 117.7 kB / 0.5328 GB, free: 12.74 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.974e-05/0.3734, allocations: 9.609 kB / 0.5328 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.297e-05/0.3734, allocations: 20.23 kB / 0.5328 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001911/0.3736, allocations: 90.94 kB / 0.5329 GB, free: 12.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.3736, allocations: 0 / 0.5329 GB, free: 12.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3736, allocations: 0 / 0.5329 GB, free: 12.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.3736, allocations: 0 / 0.5329 GB, free: 12.66 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.0004865/0.3741, allocations: 363.1 kB / 0.5333 GB, free: 12.28 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.3742, allocations: 12.94 kB / 0.5333 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.628e-05/0.3742, allocations: 6.688 kB / 0.5333 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001408/0.3744, allocations: 172 kB / 0.5334 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.3744, allocations: 6.125 kB / 0.5335 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.745e-05/0.3744, allocations: 4 kB / 0.5335 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001425/0.3746, allocations: 54.77 kB / 0.5335 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.3746, allocations: 2 kB / 0.5335 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.199e-05/0.3746, allocations: 3.938 kB / 0.5335 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.3746, allocations: 1.781 kB / 0.5335 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.027e-05/0.3747, allocations: 27.33 kB / 0.5335 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000194/0.3749, allocations: 183.7 kB / 0.5337 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002178/0.3751, allocations: 57.91 kB / 0.5338 GB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.813e-05/0.3752, allocations: 23.5 kB / 0.5338 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002729/0.3755, allocations: 110.3 kB / 0.5339 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.3755, allocations: 46.72 kB / 0.5339 GB, free: 11.56 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.172e-06/0.3755, allocations: 1.375 kB / 0.5339 GB, free: 11.56 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.04113/0.4166, allocations: 2.573 MB / 0.5365 GB, free: 10.2 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.4167, allocations: 53.56 kB / 0.5365 GB, free: 10.13 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.466e-05/0.4168, allocations: 104.3 kB / 0.5366 GB, free: 10.03 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.318e-05/0.4169, allocations: 26.83 kB / 0.5366 GB, free: 9.996 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.008e-05/0.4169, allocations: 89.45 kB / 0.5367 GB, free: 9.906 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.108e-05/0.417, allocations: 58.42 kB / 0.5368 GB, free: 9.855 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/0.4171, allocations: 54.88 kB / 0.5368 GB, free: 9.824 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.4173, allocations: 328.7 kB / 0.5371 GB, free: 9.496 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003928/0.4177, allocations: 175 kB / 0.5373 GB, free: 9.406 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003808/0.4181, allocations: 172.2 kB / 0.5375 GB, free: 9.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.4191, allocations: 421.8 kB / 0.5379 GB, free: 9.113 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.4191, allocations: 1.062 kB / 0.5379 GB, free: 9.113 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001058/0.4201, allocations: 463.7 kB / 0.5383 GB, free: 8.875 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.4202, allocations: 8.281 kB / 0.5383 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.4202, allocations: 0 / 0.5383 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.4202, allocations: 6.219 kB / 0.5383 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000388/0.4206, allocations: 67.59 kB / 0.5384 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.615e-06/0.4206, allocations: 0 / 0.5384 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002032/0.4208, allocations: 21.59 kB / 0.5384 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.086e-05/0.4209, allocations: 21.64 kB / 0.5384 GB, free: 8.836 MB / 398.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.0001184/0.421, allocations: 120.3 kB / 0.5386 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.97e-05/0.4211, allocations: 7.969 kB / 0.5386 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001299/0.4224, allocations: 0.5386 MB / 0.5391 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.4224, allocations: 6.094 kB / 0.5391 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.4224, allocations: 0 / 0.5391 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.4224, allocations: 3.984 kB / 0.5391 GB, free: 8.402 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002134/0.4245, allocations: 0.8832 MB / 0.54 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.4246, allocations: 2.125 kB / 0.54 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002819/0.4248, allocations: 65.61 kB / 0.54 GB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.72e-06/0.4249, allocations: 3.438 kB / 0.54 GB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.305e-05/0.4249, allocations: 14.55 kB / 0.54 GB, free: 7.715 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.784e-06/0.4249, allocations: 3.656 kB / 0.54 GB, free: 7.715 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.4249, allocations: 9.156 kB / 0.5401 GB, free: 7.707 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000911/0.4258, allocations: 461.8 kB / 0.5405 GB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.93e-05/0.4259, allocations: 89.62 kB / 0.5406 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/0.4259, allocations: 7.312 kB / 0.5406 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001926/0.4261, allocations: 18.92 kB / 0.5406 GB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.6e-05/0.4262, allocations: 14.98 kB / 0.5406 GB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.474e-05/0.4262, allocations: 17.39 kB / 0.5406 GB, free: 7.273 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.655e-05/0.4263, allocations: 86.59 kB / 0.5407 GB, free: 7.191 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4263, allocations: 1.094 kB / 0.5407 GB, free: 7.191 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009901/0.4273, allocations: 312.4 kB / 0.541 GB, free: 7.16 MB / 398.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.001262/0.4286, allocations: 242.2 kB / 0.5412 GB, free: 7.012 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000815/0.4294, allocations: 344 kB / 0.5416 GB, free: 6.852 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.4294, allocations: 1.031 kB / 0.5416 GB, free: 6.852 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003315/0.4297, allocations: 146.4 kB / 0.5417 GB, free: 6.793 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002743/0.43, allocations: 13.58 kB / 0.5417 GB, free: 6.785 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.4313, allocations: 448.5 kB / 0.5422 GB, free: 6.465 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002722/0.4316, allocations: 0.6939 MB / 0.5428 GB, free: 5.758 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001971/0.4318, allocations: 53.88 kB / 0.5429 GB, free: 5.734 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4318, allocations: 3.938 kB / 0.5429 GB, free: 5.73 MB / 398.1 MB Notification: Performance of Templates: time 0.01134/0.4431, allocations: 6.551 MB / 0.5493 GB, free: 15.23 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches