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.001241/0.001241, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001387/0.001387, allocations: 216.9 kB / 24.53 MB, free: 4.012 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.333/1.333, allocations: 230.5 MB / 258.2 MB, free: 8.023 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.2104/0.2104, allocations: 46.93 MB / 361.6 MB, free: 4.191 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002195/0.002195, allocations: 87.84 kB / 0.497 GB, free: 7.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2927/0.2949, allocations: 66.08 MB / 0.5615 GB, free: 4.301 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.00167/0.2966, allocations: 0.5344 MB / 0.562 GB, free: 3.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006878/0.2973, allocations: 366.7 kB / 0.5624 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.532e-05/0.2973, allocations: 0 / 0.5624 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.532e-05/0.2973, allocations: 3.938 kB / 0.5624 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.232e-05/0.2973, allocations: 7.938 kB / 0.5624 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003789/0.2977, allocations: 111.4 kB / 0.5625 GB, free: 3.293 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.814e-05/0.2978, allocations: 23.92 kB / 0.5625 GB, free: 3.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.308e-05/0.2978, allocations: 7.984 kB / 0.5625 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.782e-05/0.2978, allocations: 4 kB / 0.5625 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.835e-05/0.2979, allocations: 23.84 kB / 0.5625 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.314e-05/0.2979, allocations: 4 kB / 0.5625 GB, free: 3.23 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002135/0.2981, allocations: 115.9 kB / 0.5627 GB, free: 3.117 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.427e-05/0.2981, allocations: 7.984 kB / 0.5627 GB, free: 3.109 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.426e-05/0.2982, allocations: 23.86 kB / 0.5627 GB, free: 3.086 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001639/0.2983, allocations: 93.72 kB / 0.5628 GB, free: 2.996 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.2983, allocations: 0 / 0.5628 GB, free: 2.996 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2983, allocations: 0 / 0.5628 GB, free: 2.996 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.469e-06/0.2984, allocations: 0 / 0.5628 GB, free: 2.996 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.0003877/0.2987, allocations: 290 kB / 0.5631 GB, free: 2.68 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.453e-05/0.2988, allocations: 11.97 kB / 0.5631 GB, free: 2.668 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.47e-05/0.2988, allocations: 4.188 kB / 0.5631 GB, free: 2.664 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.752e-05/0.2988, allocations: 42.69 kB / 0.5631 GB, free: 2.613 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.278e-05/0.2988, allocations: 0.9375 kB / 0.5631 GB, free: 2.613 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.922e-05/0.2989, allocations: 122.4 kB / 0.5632 GB, free: 2.469 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.299, allocations: 4.375 kB / 0.5632 GB, free: 2.465 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.335e-05/0.299, allocations: 4.375 kB / 0.5632 GB, free: 2.461 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001234/0.2991, allocations: 54 kB / 0.5633 GB, free: 2.402 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.2991, allocations: 7.938 kB / 0.5633 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.133e-06/0.2991, allocations: 0 / 0.5633 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.2991, allocations: 0 / 0.5633 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.628e-05/0.2992, allocations: 35.91 kB / 0.5633 GB, free: 2.359 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001606/0.2994, allocations: 144.7 kB / 0.5635 GB, free: 2.176 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001985/0.2996, allocations: 50.83 kB / 0.5635 GB, free: 2.117 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.567e-05/0.2996, allocations: 24.8 kB / 0.5635 GB, free: 2.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002175/0.2998, allocations: 31.95 kB / 0.5636 GB, free: 2.059 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.2999, allocations: 38.5 kB / 0.5636 GB, free: 2.012 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.072e-06/0.2999, allocations: 0 / 0.5636 GB, free: 2.012 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.03959/0.3395, allocations: 2.58 MB / 0.5661 GB, free: 15.4 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.575e-05/0.3395, allocations: 51.41 kB / 0.5662 GB, free: 15.34 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.47e-05/0.3396, allocations: 105.8 kB / 0.5663 GB, free: 15.22 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.884e-05/0.3396, allocations: 29.7 kB / 0.5663 GB, free: 15.19 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.962e-05/0.3397, allocations: 83.89 kB / 0.5664 GB, free: 15.1 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.933e-05/0.3397, allocations: 63.44 kB / 0.5664 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001282/0.3399, allocations: 61.67 kB / 0.5665 GB, free: 14.97 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.34, allocations: 326.8 kB / 0.5668 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003892/0.3404, allocations: 171.9 kB / 0.567 GB, free: 14.48 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004264/0.3408, allocations: 175.9 kB / 0.5671 GB, free: 14.3 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/0.3419, allocations: 424.5 kB / 0.5675 GB, free: 13.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.3419, allocations: 0 / 0.5675 GB, free: 13.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001074/0.343, allocations: 460 kB / 0.568 GB, free: 13.43 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.343, allocations: 8 kB / 0.568 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.343, allocations: 0 / 0.568 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.343, allocations: 0 / 0.568 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003657/0.3434, allocations: 71.94 kB / 0.5681 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.3434, allocations: 3.938 kB / 0.5681 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002087/0.3436, allocations: 19.97 kB / 0.5681 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.807e-05/0.3437, allocations: 19.98 kB / 0.5681 GB, free: 13.31 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.0001313/0.3438, allocations: 121.8 kB / 0.5682 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.966e-05/0.3438, allocations: 7.953 kB / 0.5682 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001271/0.3451, allocations: 0.5407 MB / 0.5688 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.3451, allocations: 8 kB / 0.5688 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.3451, allocations: 0 / 0.5688 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.3451, allocations: 0 / 0.5688 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002114/0.3472, allocations: 0.8612 MB / 0.5696 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.271e-06/0.3472, allocations: 4 kB / 0.5696 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002718/0.3475, allocations: 67.89 kB / 0.5697 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.169e-06/0.3475, allocations: 4 kB / 0.5697 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.131e-05/0.3475, allocations: 19.98 kB / 0.5697 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.3475, allocations: 3.938 kB / 0.5697 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.3475, allocations: 4 kB / 0.5697 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009478/0.3485, allocations: 466.9 kB / 0.5702 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.013e-05/0.3485, allocations: 11.95 kB / 0.5702 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.762e-05/0.3486, allocations: 7.984 kB / 0.5702 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.3488, allocations: 15.98 kB / 0.5702 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.575e-05/0.3488, allocations: 15.97 kB / 0.5702 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.505e-05/0.3488, allocations: 16 kB / 0.5702 GB, free: 11.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.041e-05/0.3489, allocations: 95.2 kB / 0.5703 GB, free: 10.94 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3489, allocations: 0 / 0.5703 GB, free: 10.94 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008857/0.3498, allocations: 311.6 kB / 0.5706 GB, free: 10.64 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.002593/0.3523, allocations: 1.119 MB / 0.5717 GB, free: 9.473 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008737/0.3532, allocations: 327.7 kB / 0.572 GB, free: 9.152 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3532, allocations: 0 / 0.572 GB, free: 9.152 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003436/0.3536, allocations: 144.1 kB / 0.5721 GB, free: 9.012 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002683/0.3538, allocations: 11.09 kB / 0.5722 GB, free: 9.004 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001715/0.3555, allocations: 0.5032 MB / 0.5726 GB, free: 8.441 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.3559, allocations: 0.7043 MB / 0.5733 GB, free: 7.707 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002634/0.3562, allocations: 92.97 kB / 0.5734 GB, free: 7.613 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001978/0.3564, allocations: 59.39 kB / 0.5735 GB, free: 7.555 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3564, allocations: 0 / 0.5735 GB, free: 7.555 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04056/0.3969, allocations: 19.26 MB / 0.5923 GB, free: 4.398 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.6/11, allocations: 4.062 kB / 0.5923 GB, free: 4.395 MB / 430.1 MB " [Timeout remaining time 649] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.784614863980096]