Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.Test02RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001447/0.001447, allocations: 118.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.001749/0.001749, allocations: 201.2 kB / 18.73 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.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2358/0.2358, allocations: 46.09 MB / 344.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002345/0.002345, allocations: 75.88 kB / 480.8 MB, free: 4.613 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3456/0.3479, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001705/0.3497, allocations: 499.5 kB / 0.531 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001931/0.3516, allocations: 1.408 MB / 0.5323 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.759e-05/0.3517, allocations: 0 / 0.5323 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.509e-05/0.3517, allocations: 0 / 0.5323 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.331e-05/0.3518, allocations: 5.281 kB / 0.5323 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007413/0.3525, allocations: 228.6 kB / 0.5326 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.002e-05/0.3526, allocations: 7.797 kB / 0.5326 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.021e-05/0.3526, allocations: 5.781 kB / 0.5326 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.786e-05/0.3527, allocations: 2.031 kB / 0.5326 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.488e-05/0.3527, allocations: 1.875 kB / 0.5326 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.322e-05/0.3527, allocations: 0 / 0.5326 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004731/0.3532, allocations: 293 kB / 0.5329 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.81e-05/0.3532, allocations: 4 kB / 0.5329 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.433e-05/0.3533, allocations: 9.703 kB / 0.5329 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002272/0.3535, allocations: 138.4 kB / 0.533 GB, free: 11.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.3535, allocations: 0 / 0.533 GB, free: 11.5 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.3535, allocations: 0 / 0.533 GB, free: 11.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.3535, allocations: 0 / 0.533 GB, free: 11.5 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003552/0.3539, allocations: 336.1 kB / 0.5333 GB, free: 11.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.3539, allocations: 12.92 kB / 0.5333 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.441e-05/0.354, allocations: 32.56 kB / 0.5334 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.934e-05/0.354, allocations: 4.938 kB / 0.5334 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.442e-05/0.3541, allocations: 164.3 kB / 0.5335 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.034e-05/0.3541, allocations: 2.188 kB / 0.5335 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.917e-06/0.3541, allocations: 6.156 kB / 0.5335 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001055/0.3542, allocations: 39.16 kB / 0.5336 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.044e-06/0.3543, allocations: 0 / 0.5336 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.796e-06/0.3543, allocations: 0 / 0.5336 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.932e-06/0.3543, allocations: 0 / 0.5336 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.311e-05/0.3543, allocations: 13.31 kB / 0.5336 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003207/0.3546, allocations: 244.8 kB / 0.5338 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.747e-05/0.3547, allocations: 20.7 kB / 0.5338 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.551e-05/0.3547, allocations: 6.766 kB / 0.5339 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.023e-05/0.3547, allocations: 0 / 0.5339 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/0.3548, allocations: 34.56 kB / 0.5339 GB, free: 10.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.3548, allocations: 0 / 0.5339 GB, free: 10.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001401/0.3549, allocations: 48.55 kB / 0.5339 GB, free: 10.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/0.355, allocations: 55.34 kB / 0.534 GB, free: 10.37 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.917e-05/0.355, allocations: 98.8 kB / 0.5341 GB, free: 10.27 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/0.3551, allocations: 26.86 kB / 0.5341 GB, free: 10.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.305e-05/0.3551, allocations: 89.31 kB / 0.5342 GB, free: 10.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.15e-06/0.3551, allocations: 0 / 0.5342 GB, free: 10.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.405e-05/0.3552, allocations: 17.58 kB / 0.5342 GB, free: 10.12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.417e-05/0.3553, allocations: 324.2 kB / 0.5345 GB, free: 9.801 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.123e-05/0.3553, allocations: 1.25 kB / 0.5345 GB, free: 9.801 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.644e-05/0.3553, allocations: 18.45 kB / 0.5345 GB, free: 9.777 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.588e-05/0.3553, allocations: 33.47 kB / 0.5346 GB, free: 9.742 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3554, allocations: 3.938 kB / 0.5346 GB, free: 9.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.119e-05/0.3554, allocations: 49.8 kB / 0.5346 GB, free: 9.695 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.3555, allocations: 6.531 kB / 0.5346 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3555, allocations: 0 / 0.5346 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.3555, allocations: 0 / 0.5346 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.005e-05/0.3555, allocations: 9.141 kB / 0.5346 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.299e-06/0.3555, allocations: 0.9375 kB / 0.5346 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.785e-05/0.3556, allocations: 2.375 kB / 0.5346 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.3556, allocations: 1.375 kB / 0.5346 GB, free: 9.691 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * 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.194e-05/0.3557, allocations: 123.1 kB / 0.5348 GB, free: 9.562 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.446e-05/0.3557, allocations: 5.281 kB / 0.5348 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001051/0.3558, allocations: 49 kB / 0.5348 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.3558, allocations: 0 / 0.5348 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3558, allocations: 1.375 kB / 0.5348 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.3558, allocations: 0 / 0.5348 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001435/0.356, allocations: 155 kB / 0.535 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.356, allocations: 5.406 kB / 0.535 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.695e-06/0.356, allocations: 1.375 kB / 0.535 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.356, allocations: 3.938 kB / 0.535 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.19e-06/0.356, allocations: 0 / 0.535 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.356, allocations: 1.375 kB / 0.535 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.356, allocations: 0 / 0.535 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.701e-05/0.3561, allocations: 131.8 kB / 0.5351 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.971e-05/0.3562, allocations: 81.09 kB / 0.5352 GB, free: 9.074 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.3562, allocations: 9.344 kB / 0.5352 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.974e-05/0.3562, allocations: 1.375 kB / 0.5352 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.089e-05/0.3563, allocations: 0 / 0.5352 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-06/0.3563, allocations: 1.375 kB / 0.5352 GB, free: 9.066 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.368e-05/0.3563, allocations: 76.66 kB / 0.5353 GB, free: 8.992 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3563, allocations: 0 / 0.5353 GB, free: 8.992 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002834/0.3566, allocations: 43.73 kB / 0.5353 GB, free: 8.984 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0005274/0.3571, allocations: 0.6997 MB / 0.536 GB, free: 8.305 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.752e-05/0.3572, allocations: 14.81 kB / 0.536 GB, free: 8.297 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.3572, allocations: 1.375 kB / 0.536 GB, free: 8.297 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.846e-05/0.3573, allocations: 28.45 kB / 0.536 GB, free: 8.266 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002048/0.3575, allocations: 1.375 kB / 0.536 GB, free: 8.266 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003975/0.3579, allocations: 128.9 kB / 0.5361 GB, free: 8.117 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002573/0.3581, allocations: 0.6755 MB / 0.5368 GB, free: 7.418 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.235e-05/0.3582, allocations: 1.375 kB / 0.5368 GB, free: 7.418 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.386e-05/0.3582, allocations: 12.75 kB / 0.5368 GB, free: 7.406 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3582, allocations: 0 / 0.5368 GB, free: 7.406 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01781/0.376, allocations: 1.876 MB / 0.5387 GB, free: 6.348 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.523/7.899, allocations: 2.203 kB / 0.5387 GB, free: 6.348 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches