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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001287/0.001287, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0014/0.0014, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2184/0.2184, allocations: 46.12 MB / 344.3 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00217/0.00217, allocations: 79.88 kB / 480.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3017/0.3038, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.00161/0.3055, allocations: 0.5471 MB / 0.5311 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006557/0.3062, allocations: 357.8 kB / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.631e-05/0.3062, allocations: 0 / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.583e-05/0.3062, allocations: 3.938 kB / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.959e-05/0.3063, allocations: 3.531 kB / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003701/0.3067, allocations: 108.8 kB / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.744e-05/0.3067, allocations: 26.52 kB / 0.5316 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.813e-05/0.3068, allocations: 3.312 kB / 0.5316 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.419e-05/0.3068, allocations: 18.09 kB / 0.5316 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.693e-05/0.3069, allocations: 22.33 kB / 0.5317 GB, free: 12.56 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.214e-05/0.3069, allocations: 0 / 0.5317 GB, free: 12.56 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002191/0.3071, allocations: 118.7 kB / 0.5318 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.547e-05/0.3071, allocations: 5.297 kB / 0.5318 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.461e-05/0.3072, allocations: 15.34 kB / 0.5318 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001737/0.3073, allocations: 101.3 kB / 0.5319 GB, free: 12.43 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3073, allocations: 5.062 kB / 0.5319 GB, free: 12.42 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3074, allocations: 0 / 0.5319 GB, free: 12.42 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.3074, allocations: 0 / 0.5319 GB, free: 12.42 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.0004344/0.3078, allocations: 367.4 kB / 0.5322 GB, free: 12.03 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.3078, allocations: 8.844 kB / 0.5323 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.921e-05/0.3079, allocations: 36.09 kB / 0.5323 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.356e-05/0.3079, allocations: 3.781 kB / 0.5323 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000132/0.3081, allocations: 175 kB / 0.5325 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.222e-05/0.3081, allocations: 5.719 kB / 0.5325 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.754e-05/0.3081, allocations: 7.125 kB / 0.5325 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001242/0.3082, allocations: 54.91 kB / 0.5325 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.3082, allocations: 8.984 kB / 0.5325 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.116e-06/0.3083, allocations: 0 / 0.5325 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.3083, allocations: 1.125 kB / 0.5325 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.504e-05/0.3083, allocations: 25.02 kB / 0.5326 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001887/0.3085, allocations: 167.1 kB / 0.5327 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002017/0.3087, allocations: 60.2 kB / 0.5328 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.881e-05/0.3088, allocations: 30.72 kB / 0.5328 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002378/0.3091, allocations: 105.6 kB / 0.5329 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/0.3091, allocations: 34.56 kB / 0.5329 GB, free: 11.3 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.242e-06/0.3091, allocations: 0 / 0.5329 GB, free: 11.3 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.04212/0.3512, allocations: 2.577 MB / 0.5355 GB, free: 9.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.121e-05/0.3513, allocations: 57.58 kB / 0.5355 GB, free: 9.863 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.719e-05/0.3514, allocations: 103.3 kB / 0.5356 GB, free: 9.758 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.912e-05/0.3515, allocations: 30.8 kB / 0.5356 GB, free: 9.723 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.535e-05/0.3515, allocations: 84.95 kB / 0.5357 GB, free: 9.637 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.481e-05/0.3516, allocations: 71.02 kB / 0.5358 GB, free: 9.574 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.3517, allocations: 54.75 kB / 0.5358 GB, free: 9.543 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.3519, allocations: 328.8 kB / 0.5362 GB, free: 9.215 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004036/0.3523, allocations: 174.8 kB / 0.5363 GB, free: 9.125 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003877/0.3527, allocations: 172.6 kB / 0.5365 GB, free: 9.039 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001079/0.3538, allocations: 418.3 kB / 0.5369 GB, free: 8.836 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.3538, allocations: 0 / 0.5369 GB, free: 8.836 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001055/0.3549, allocations: 464.3 kB / 0.5373 GB, free: 8.598 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.3549, allocations: 6.062 kB / 0.5373 GB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3549, allocations: 5.562 kB / 0.5373 GB, free: 8.594 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.3549, allocations: 4 kB / 0.5373 GB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003552/0.3553, allocations: 71.38 kB / 0.5374 GB, free: 8.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.3553, allocations: 1.125 kB / 0.5374 GB, free: 8.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000194/0.3555, allocations: 14.33 kB / 0.5374 GB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.215e-05/0.3556, allocations: 20.61 kB / 0.5374 GB, free: 8.559 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.0001262/0.3557, allocations: 120.8 kB / 0.5376 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.025e-05/0.3557, allocations: 12.02 kB / 0.5376 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001329/0.3571, allocations: 0.55 MB / 0.5381 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.3571, allocations: 2.281 kB / 0.5381 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.3571, allocations: 0 / 0.5381 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.3571, allocations: 0 / 0.5381 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002112/0.3592, allocations: 0.8803 MB / 0.539 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.3592, allocations: 4.938 kB / 0.539 GB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002729/0.3595, allocations: 74.09 kB / 0.539 GB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.3595, allocations: 6.5 kB / 0.539 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.012e-05/0.3596, allocations: 15.27 kB / 0.5391 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.3596, allocations: 3.938 kB / 0.5391 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3596, allocations: 2.156 kB / 0.5391 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009347/0.3605, allocations: 460.7 kB / 0.5395 GB, free: 7.109 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.971e-05/0.3606, allocations: 90.19 kB / 0.5396 GB, free: 7.008 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.732e-05/0.3606, allocations: 6.344 kB / 0.5396 GB, free: 7.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001978/0.3608, allocations: 26.94 kB / 0.5396 GB, free: 6.988 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.6e-05/0.3609, allocations: 14.83 kB / 0.5396 GB, free: 6.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.133e-05/0.3609, allocations: 17.61 kB / 0.5397 GB, free: 6.977 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.316e-05/0.361, allocations: 83.72 kB / 0.5397 GB, free: 6.898 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.361, allocations: 0 / 0.5397 GB, free: 6.898 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008593/0.3618, allocations: 320.6 kB / 0.54 GB, free: 6.859 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.002489/0.3643, allocations: 1.12 MB / 0.5411 GB, free: 5.969 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008279/0.3652, allocations: 338.5 kB / 0.5415 GB, free: 5.816 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3652, allocations: 1.375 kB / 0.5415 GB, free: 5.816 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003659/0.3656, allocations: 149.2 kB / 0.5416 GB, free: 5.758 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002699/0.3658, allocations: 8.719 kB / 0.5416 GB, free: 5.754 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001703/0.3676, allocations: 0.5113 MB / 0.5421 GB, free: 5.375 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002921/0.3679, allocations: 0.6898 MB / 0.5428 GB, free: 4.672 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002837/0.3682, allocations: 95.97 kB / 0.5429 GB, free: 4.605 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002036/0.3684, allocations: 59.39 kB / 0.5429 GB, free: 4.547 MB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3684, allocations: 4 kB / 0.5429 GB, free: 4.543 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04318/0.4116, allocations: 18.96 MB / 0.5615 GB, free: 1.707 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.759/8.171, allocations: 0 / 0.5615 GB, free: 1.707 MB / 414.1 MB (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 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > 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