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.001432/0.001432, allocations: 118.2 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001733/0.001733, allocations: 197.2 kB / 18.73 MB, free: 4.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2133/0.2133, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 79.86 kB / 480.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3275, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001624/0.3292, allocations: 0.5342 MB / 0.531 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003942/0.3296, allocations: 154.8 kB / 0.5312 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.604e-05/0.3297, allocations: 0 / 0.5312 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.18e-05/0.3297, allocations: 1.25 kB / 0.5312 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002612/0.33, allocations: 44.56 kB / 0.5312 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.118e-06/0.33, allocations: 3.938 kB / 0.5312 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.337e-05/0.33, allocations: 17.08 kB / 0.5312 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.284e-05/0.3301, allocations: 11.09 kB / 0.5312 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.712e-05/0.3301, allocations: 6.219 kB / 0.5313 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.464e-05/0.3302, allocations: 24.3 kB / 0.5313 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.229e-05/0.3302, allocations: 5.453 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001169/0.3303, allocations: 47.59 kB / 0.5313 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.097e-05/0.3303, allocations: 5.531 kB / 0.5313 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.121e-05/0.3304, allocations: 5.438 kB / 0.5313 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001124/0.3305, allocations: 44.02 kB / 0.5314 GB, free: 12.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3305, allocations: 0 / 0.5314 GB, free: 12.77 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3305, allocations: 5.719 kB / 0.5314 GB, free: 12.76 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.3305, allocations: 0 / 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.000308/0.3308, allocations: 344.3 kB / 0.5317 GB, free: 12.39 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.3309, allocations: 10.78 kB / 0.5317 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.844e-05/0.3309, allocations: 42.67 kB / 0.5318 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.484e-05/0.3309, allocations: 4.5 kB / 0.5318 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001154/0.3311, allocations: 160.4 kB / 0.5319 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.125e-05/0.3311, allocations: 2.312 kB / 0.5319 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.074e-05/0.3311, allocations: 3.844 kB / 0.5319 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001272/0.3312, allocations: 60.83 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.283e-05/0.3313, allocations: 3.938 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.3313, allocations: 3.938 kB / 0.532 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.291e-06/0.3313, allocations: 9.766 kB / 0.532 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001008/0.3314, allocations: 54.52 kB / 0.5321 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001814/0.3316, allocations: 171.2 kB / 0.5322 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001381/0.3317, allocations: 82.58 kB / 0.5323 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.967e-05/0.3318, allocations: 31.41 kB / 0.5323 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003324/0.3321, allocations: 252.9 kB / 0.5326 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.3322, allocations: 40.19 kB / 0.5326 GB, free: 11.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.153e-06/0.3322, allocations: 0 / 0.5326 GB, free: 11.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002379/0.3324, allocations: 108 kB / 0.5327 GB, free: 11.37 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.982e-05/0.3325, allocations: 51.41 kB / 0.5328 GB, free: 11.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.06e-05/0.3325, allocations: 97.34 kB / 0.5328 GB, free: 11.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.3325, allocations: 25.7 kB / 0.5329 GB, free: 11.17 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.431e-05/0.3326, allocations: 80.14 kB / 0.533 GB, free: 11.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.113e-05/0.3326, allocations: 43.41 kB / 0.533 GB, free: 11.05 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.477e-05/0.3327, allocations: 24.77 kB / 0.533 GB, free: 11.03 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.3328, allocations: 310.8 kB / 0.5333 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.231e-05/0.3328, allocations: 22.95 kB / 0.5333 GB, free: 10.7 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.648e-05/0.3329, allocations: 13.66 kB / 0.5333 GB, free: 10.7 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.475e-05/0.333, allocations: 54.56 kB / 0.5334 GB, free: 10.67 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.333, allocations: 0 / 0.5334 GB, free: 10.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001337/0.3331, allocations: 95.61 kB / 0.5335 GB, free: 10.6 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.3331, allocations: 9.406 kB / 0.5335 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.3331, allocations: 4 kB / 0.5335 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.3332, allocations: 0 / 0.5335 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.3333, allocations: 17.08 kB / 0.5335 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.3333, allocations: 0.7812 kB / 0.5335 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.759e-05/0.3333, allocations: 6.094 kB / 0.5335 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.181e-06/0.3333, allocations: 1.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.899e-05/0.3334, allocations: 116.2 kB / 0.5336 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.483e-05/0.3334, allocations: 9.672 kB / 0.5336 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001925/0.3336, allocations: 99.95 kB / 0.5337 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.982e-06/0.3336, allocations: 9.141 kB / 0.5338 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.3337, allocations: 1.156 kB / 0.5338 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.3337, allocations: 0 / 0.5338 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001296/0.3338, allocations: 168 kB / 0.5339 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3338, allocations: 0.75 kB / 0.5339 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.254e-05/0.3339, allocations: 25.64 kB / 0.5339 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.3339, allocations: 3.938 kB / 0.5339 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-06/0.3339, allocations: 1.125 kB / 0.5339 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.3339, allocations: 1.281 kB / 0.5339 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3339, allocations: 4 kB / 0.5339 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001607/0.3341, allocations: 111.8 kB / 0.5341 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.872e-05/0.3341, allocations: 83.42 kB / 0.5341 GB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.577e-05/0.3342, allocations: 5.125 kB / 0.5341 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.437e-05/0.3342, allocations: 0 / 0.5341 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.506e-05/0.3342, allocations: 3.531 kB / 0.5341 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-05/0.3342, allocations: 10.55 kB / 0.5342 GB, free: 9.953 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.435e-05/0.3343, allocations: 80.34 kB / 0.5342 GB, free: 9.875 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3343, allocations: 0 / 0.5342 GB, free: 9.875 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000201/0.3345, allocations: 16.53 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.000468/0.3349, allocations: 0.6612 MB / 0.5349 GB, free: 9.234 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001452/0.3351, allocations: 54.27 kB / 0.5349 GB, free: 9.215 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.3351, allocations: 4.094 kB / 0.5349 GB, free: 9.211 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.498e-05/0.3352, allocations: 35.2 kB / 0.535 GB, free: 9.195 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001473/0.3353, allocations: 5.875 kB / 0.535 GB, free: 9.191 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004491/0.3358, allocations: 171.7 kB / 0.5351 GB, free: 9.02 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002872/0.3361, allocations: 0.6841 MB / 0.5358 GB, free: 8.316 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.968e-05/0.3361, allocations: 8.219 kB / 0.5358 GB, free: 8.312 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.484e-05/0.3362, allocations: 15.28 kB / 0.5358 GB, free: 8.301 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3362, allocations: 0 / 0.5358 GB, free: 8.301 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0179/0.3541, allocations: 1.554 MB / 0.5374 GB, free: 7.453 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.31/7.664, allocations: 22.97 kB / 0.5374 GB, free: 7.434 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegFunctions.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv","/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) Reference file matches