Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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.TestRegFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001307/0.001307, allocations: 117.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001361/0.001361, allocations: 203.8 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2037/0.2037, allocations: 46.09 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 79.88 kB / 480.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.318, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001578/0.3197, allocations: 0.5227 MB / 0.531 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003823/0.3201, allocations: 151.6 kB / 0.5312 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.676e-05/0.3201, allocations: 1.094 kB / 0.5312 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.649e-05/0.3201, allocations: 7.875 kB / 0.5312 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002353/0.3204, allocations: 37.3 kB / 0.5312 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.499e-06/0.3204, allocations: 0 / 0.5312 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.621e-05/0.3205, allocations: 21.08 kB / 0.5312 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.311e-05/0.3205, allocations: 10.17 kB / 0.5312 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.139e-05/0.3205, allocations: 10.94 kB / 0.5312 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.48e-05/0.3206, allocations: 20.11 kB / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.016e-05/0.3206, allocations: 0.9688 kB / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001121/0.3207, allocations: 52.38 kB / 0.5313 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.876e-06/0.3208, allocations: 1.062 kB / 0.5313 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.851e-05/0.3208, allocations: 9.156 kB / 0.5313 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001027/0.3209, allocations: 47.06 kB / 0.5314 GB, free: 12.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3209, allocations: 1.281 kB / 0.5314 GB, free: 12.77 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3209, allocations: 0 / 0.5314 GB, free: 12.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.3209, allocations: 0 / 0.5314 GB, free: 12.77 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003105/0.3212, allocations: 336.9 kB / 0.5317 GB, free: 12.4 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.3213, allocations: 14.09 kB / 0.5317 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.126e-05/0.3213, allocations: 35.83 kB / 0.5317 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.91e-05/0.3213, allocations: 6.875 kB / 0.5317 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001153/0.3215, allocations: 169.5 kB / 0.5319 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.937e-06/0.3215, allocations: 2.562 kB / 0.5319 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.338e-05/0.3215, allocations: 3.688 kB / 0.5319 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001205/0.3216, allocations: 56.11 kB / 0.532 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.3216, allocations: 9.359 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.726e-06/0.3216, allocations: 4 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.3217, allocations: 5.406 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001073/0.3218, allocations: 52.73 kB / 0.532 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001863/0.322, allocations: 180.2 kB / 0.5322 GB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001383/0.3221, allocations: 83.45 kB / 0.5323 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.126e-05/0.3222, allocations: 32.19 kB / 0.5323 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003998/0.3226, allocations: 249 kB / 0.5325 GB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.3226, allocations: 42.48 kB / 0.5326 GB, free: 11.44 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.232e-06/0.3226, allocations: 1.781 kB / 0.5326 GB, free: 11.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002166/0.3228, allocations: 105.7 kB / 0.5327 GB, free: 11.37 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.728e-05/0.3229, allocations: 52.94 kB / 0.5327 GB, free: 11.31 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.254e-05/0.3229, allocations: 97.84 kB / 0.5328 GB, free: 11.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.49e-05/0.323, allocations: 27.11 kB / 0.5329 GB, free: 11.17 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3e-05/0.323, allocations: 80.14 kB / 0.5329 GB, free: 11.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.62e-05/0.323, allocations: 32.12 kB / 0.533 GB, free: 11.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.935e-05/0.3231, allocations: 28.27 kB / 0.533 GB, free: 11.04 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.589e-05/0.3232, allocations: 312.3 kB / 0.5333 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.553e-05/0.3232, allocations: 22.08 kB / 0.5333 GB, free: 10.71 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.079e-05/0.3233, allocations: 18.16 kB / 0.5333 GB, free: 10.7 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.934e-05/0.3233, allocations: 59.03 kB / 0.5334 GB, free: 10.67 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3234, allocations: 0 / 0.5334 GB, free: 10.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002402/0.3236, allocations: 90.56 kB / 0.5335 GB, free: 10.61 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.3236, allocations: 11.34 kB / 0.5335 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.3236, allocations: 5.75 kB / 0.5335 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.3237, allocations: 0 / 0.5335 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.251e-05/0.3237, allocations: 16.83 kB / 0.5335 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.3238, allocations: 1.75 kB / 0.5335 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.263e-05/0.3238, allocations: 0 / 0.5335 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.054e-06/0.3238, allocations: 3.594 kB / 0.5335 GB, free: 10.59 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 (10): * Single equations (assignments): 10 * 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 7.898e-05/0.3239, allocations: 115.7 kB / 0.5336 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.274e-05/0.3239, allocations: 5.688 kB / 0.5336 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001801/0.3241, allocations: 111.9 kB / 0.5337 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.3241, allocations: 2.312 kB / 0.5337 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.3241, allocations: 0 / 0.5337 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.368e-05/0.3241, allocations: 0 / 0.5337 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001255/0.3243, allocations: 172.2 kB / 0.5339 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.3243, allocations: 0 / 0.5339 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.493e-05/0.3243, allocations: 20.55 kB / 0.5339 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.3243, allocations: 5.344 kB / 0.5339 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.3244, allocations: 5.469 kB / 0.5339 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.3244, allocations: 0 / 0.5339 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3244, allocations: 0 / 0.5339 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001376/0.3245, allocations: 112.1 kB / 0.534 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.159e-05/0.3246, allocations: 82.7 kB / 0.5341 GB, free: 9.973 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.363e-05/0.3246, allocations: 5.531 kB / 0.5341 GB, free: 9.969 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.625e-05/0.3246, allocations: 9.594 kB / 0.5341 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.013e-05/0.3246, allocations: 7.547 kB / 0.5341 GB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.3246, allocations: 1.656 kB / 0.5341 GB, free: 9.957 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.869e-05/0.3247, allocations: 80.94 kB / 0.5342 GB, free: 9.879 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3247, allocations: 3.938 kB / 0.5342 GB, free: 9.875 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002009/0.3249, allocations: 16.59 kB / 0.5342 GB, free: 9.871 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (10): * Single equations (assignments): 10 * 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.0004125/0.3253, allocations: 0.6439 MB / 0.5349 GB, free: 9.25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001273/0.3254, allocations: 58.23 kB / 0.5349 GB, free: 9.227 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.3255, allocations: 4.094 kB / 0.5349 GB, free: 9.223 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.244e-05/0.3255, allocations: 35.17 kB / 0.535 GB, free: 9.207 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000133/0.3256, allocations: 8.984 kB / 0.535 GB, free: 9.203 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004081/0.3261, allocations: 171.7 kB / 0.5351 GB, free: 9.031 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002318/0.3263, allocations: 0.6809 MB / 0.5358 GB, free: 8.332 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.237e-05/0.3263, allocations: 7.906 kB / 0.5358 GB, free: 8.328 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.319e-05/0.3264, allocations: 19.56 kB / 0.5358 GB, free: 8.312 MB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3264, allocations: 0 / 0.5358 GB, free: 8.312 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02343/0.3498, allocations: 1.572 MB / 0.5374 GB, free: 7.449 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.25/7.6, allocations: 7.438 kB / 0.5374 GB, free: 7.445 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegFunctions_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegFunctions.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,x,sqrtx,sqrtx_a,x2,x2_a,x3,x3_a,sqrtxerr,x2err,x3err Variables in the result:delta,sqrtx,sqrtx_a,sqrtxerr,time,x,x2,x2_a,x2err,x3,x3_a,x3err