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.001189/0.001189, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001273/0.001273, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.207/0.207, allocations: 46.09 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 75.88 kB / 480.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3135/0.315, allocations: 62.42 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001447/0.3165, allocations: 0.5282 MB / 0.531 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003734/0.3169, allocations: 158.5 kB / 0.5312 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.787e-05/0.3169, allocations: 0 / 0.5312 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.658e-05/0.317, allocations: 3.938 kB / 0.5312 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002266/0.3172, allocations: 41.48 kB / 0.5312 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.979e-06/0.3172, allocations: 0 / 0.5312 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.06e-05/0.3173, allocations: 21.23 kB / 0.5312 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.608e-05/0.3173, allocations: 14.27 kB / 0.5312 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.928e-05/0.3173, allocations: 7.094 kB / 0.5312 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.407e-05/0.3174, allocations: 19.41 kB / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.067e-05/0.3174, allocations: 1.156 kB / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001087/0.3175, allocations: 44.77 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.216e-05/0.3175, allocations: 13.23 kB / 0.5313 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.744e-05/0.3176, allocations: 9.062 kB / 0.5313 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001041/0.3177, allocations: 47.34 kB / 0.5314 GB, free: 12.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.3177, allocations: 0 / 0.5314 GB, free: 12.77 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.043e-05/0.3177, allocations: 0 / 0.5314 GB, free: 12.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.92e-06/0.3177, allocations: 5.406 kB / 0.5314 GB, free: 12.76 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.0002908/0.318, allocations: 332.6 kB / 0.5317 GB, free: 12.4 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.318, allocations: 8.781 kB / 0.5317 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.886e-05/0.3181, allocations: 37.28 kB / 0.5317 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.743e-05/0.3181, allocations: 9.938 kB / 0.5317 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.3182, allocations: 165.9 kB / 0.5319 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.3182, allocations: 3 kB / 0.5319 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.116e-05/0.3183, allocations: 7.25 kB / 0.5319 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001209/0.3184, allocations: 56 kB / 0.532 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.3184, allocations: 3.938 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.3184, allocations: 4.922 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.3184, allocations: 1.156 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.465e-05/0.3185, allocations: 58.31 kB / 0.532 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001678/0.3187, allocations: 170.9 kB / 0.5322 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001343/0.3188, allocations: 88.08 kB / 0.5323 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.515e-05/0.3189, allocations: 27.17 kB / 0.5323 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003154/0.3192, allocations: 257.5 kB / 0.5325 GB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.3192, allocations: 34.56 kB / 0.5326 GB, free: 11.45 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.192e-06/0.3193, allocations: 5.781 kB / 0.5326 GB, free: 11.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002129/0.3195, allocations: 108.9 kB / 0.5327 GB, free: 11.37 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.84e-05/0.3195, allocations: 54.31 kB / 0.5327 GB, free: 11.31 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.452e-05/0.3196, allocations: 89.86 kB / 0.5328 GB, free: 11.21 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/0.3196, allocations: 27.64 kB / 0.5329 GB, free: 11.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.35e-05/0.3196, allocations: 80.14 kB / 0.5329 GB, free: 11.1 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.405e-05/0.3197, allocations: 39.84 kB / 0.533 GB, free: 11.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.299e-05/0.3197, allocations: 19.84 kB / 0.533 GB, free: 11.04 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.66e-05/0.3198, allocations: 321.8 kB / 0.5333 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.193e-05/0.3198, allocations: 21.5 kB / 0.5333 GB, free: 10.71 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.868e-05/0.3199, allocations: 16.77 kB / 0.5333 GB, free: 10.7 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.17e-05/0.32, allocations: 52.03 kB / 0.5334 GB, free: 10.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.32, allocations: 4 kB / 0.5334 GB, free: 10.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.00012/0.3201, allocations: 87.34 kB / 0.5335 GB, free: 10.61 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.3201, allocations: 11.41 kB / 0.5335 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.3201, allocations: 3.531 kB / 0.5335 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.3201, allocations: 96 / 0.5335 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.002e-05/0.3202, allocations: 18.91 kB / 0.5335 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.3202, allocations: 3.156 kB / 0.5335 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.577e-05/0.3203, allocations: 7.984 kB / 0.5335 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.741e-06/0.3203, allocations: 3.812 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 6.772e-05/0.3204, allocations: 117.7 kB / 0.5336 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.448e-05/0.3204, allocations: 5.312 kB / 0.5336 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001725/0.3206, allocations: 99.86 kB / 0.5337 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.3206, allocations: 1.375 kB / 0.5337 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.3206, allocations: 4 kB / 0.5337 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.3206, allocations: 1.375 kB / 0.5337 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001195/0.3207, allocations: 172.6 kB / 0.5339 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.3207, allocations: 0 / 0.5339 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.69e-05/0.3208, allocations: 16.38 kB / 0.5339 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.3208, allocations: 5.312 kB / 0.5339 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.3208, allocations: 5.359 kB / 0.5339 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3208, allocations: 0 / 0.5339 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.3208, allocations: 1.375 kB / 0.5339 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001389/0.321, allocations: 107.9 kB / 0.534 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.236e-05/0.321, allocations: 86.33 kB / 0.5341 GB, free: 9.977 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.432e-05/0.321, allocations: 9.516 kB / 0.5341 GB, free: 9.969 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.355e-05/0.3211, allocations: 0 / 0.5341 GB, free: 9.969 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.268e-05/0.3211, allocations: 3 kB / 0.5341 GB, free: 9.969 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.774e-06/0.3211, allocations: 6.781 kB / 0.5341 GB, free: 9.965 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.385e-05/0.3211, allocations: 76.12 kB / 0.5342 GB, free: 9.891 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3211, allocations: 0 / 0.5342 GB, free: 9.891 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002111/0.3213, allocations: 16.17 kB / 0.5342 GB, free: 9.887 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.0004138/0.3218, allocations: 0.6658 MB / 0.5349 GB, free: 9.246 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001294/0.3219, allocations: 52.95 kB / 0.5349 GB, free: 9.227 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3219, allocations: 1.281 kB / 0.5349 GB, free: 9.227 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.317e-05/0.322, allocations: 27.7 kB / 0.5349 GB, free: 9.219 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001438/0.3221, allocations: 17.95 kB / 0.535 GB, free: 9.207 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004079/0.3225, allocations: 175.4 kB / 0.5351 GB, free: 9.031 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002333/0.3228, allocations: 0.6818 MB / 0.5358 GB, free: 8.332 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.679e-05/0.3228, allocations: 15.23 kB / 0.5358 GB, free: 8.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.474e-05/0.3228, allocations: 12.16 kB / 0.5358 GB, free: 8.312 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3229, allocations: 0 / 0.5358 GB, free: 8.312 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01712/0.34, allocations: 1.58 MB / 0.5374 GB, free: 7.445 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.419/7.759, allocations: 7.188 kB / 0.5374 GB, free: 7.441 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