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.001227/0.001228, 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.001516/0.001516, 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.363/1.363, 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.2033/0.2033, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 83.86 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.3401, allocations: 62.42 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001943/0.3421, allocations: 0.4957 MB / 0.531 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001977/0.3441, allocations: 1.407 MB / 0.5323 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.044e-05/0.3442, allocations: 4 kB / 0.5323 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.501e-05/0.3442, allocations: 0 / 0.5323 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.194e-05/0.3442, allocations: 0 / 0.5323 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006591/0.3449, allocations: 229 kB / 0.5326 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.542e-05/0.3449, allocations: 8.016 kB / 0.5326 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.464e-05/0.345, allocations: 1.344 kB / 0.5326 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.927e-05/0.345, allocations: 6.625 kB / 0.5326 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.043e-05/0.3451, allocations: 9.953 kB / 0.5326 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.135e-05/0.3451, allocations: 0 / 0.5326 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004732/0.3456, allocations: 280.7 kB / 0.5329 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.523e-05/0.3456, allocations: 7.984 kB / 0.5329 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.053e-05/0.3456, allocations: 5.188 kB / 0.5329 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002341/0.3459, allocations: 147 kB / 0.533 GB, free: 11.49 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3459, allocations: 3.938 kB / 0.533 GB, free: 11.49 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3459, allocations: 0 / 0.533 GB, free: 11.49 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.3459, allocations: 0 / 0.533 GB, free: 11.49 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.0003812/0.3463, allocations: 335.7 kB / 0.5333 GB, free: 11.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.3463, allocations: 9.188 kB / 0.5333 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.774e-05/0.3464, allocations: 31.84 kB / 0.5334 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.648e-05/0.3464, allocations: 2.156 kB / 0.5334 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001004/0.3465, allocations: 164.4 kB / 0.5335 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.3465, allocations: 1.594 kB / 0.5335 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.013e-05/0.3465, allocations: 1.406 kB / 0.5335 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001206/0.3467, allocations: 44.12 kB / 0.5336 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.3467, allocations: 0 / 0.5336 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.3467, allocations: 0 / 0.5336 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.3467, allocations: 5.406 kB / 0.5336 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.671e-05/0.3467, allocations: 8.125 kB / 0.5336 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004413/0.3472, allocations: 251.8 kB / 0.5338 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.67e-05/0.3473, allocations: 17.23 kB / 0.5338 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.612e-05/0.3473, allocations: 6.203 kB / 0.5339 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.959e-06/0.3473, allocations: 0 / 0.5339 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.387e-05/0.3473, allocations: 31.75 kB / 0.5339 GB, free: 10.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.3473, allocations: 0 / 0.5339 GB, free: 10.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001582/0.3475, allocations: 47.97 kB / 0.5339 GB, free: 10.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.304e-05/0.3475, allocations: 56.66 kB / 0.534 GB, free: 10.36 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.038e-05/0.3476, allocations: 94.27 kB / 0.5341 GB, free: 10.27 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.3476, allocations: 26.89 kB / 0.5341 GB, free: 10.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.721e-05/0.3477, allocations: 89.19 kB / 0.5342 GB, free: 10.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.434e-06/0.3477, allocations: 4 kB / 0.5342 GB, free: 10.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.285e-05/0.3477, allocations: 13.03 kB / 0.5342 GB, free: 10.12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.3479, allocations: 315.7 kB / 0.5345 GB, free: 9.809 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.302e-05/0.3479, allocations: 6.188 kB / 0.5345 GB, free: 9.805 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.04e-05/0.3479, allocations: 26.09 kB / 0.5345 GB, free: 9.773 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.706e-05/0.348, allocations: 24.48 kB / 0.5346 GB, free: 9.746 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.348, allocations: 0 / 0.5346 GB, free: 9.746 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.542e-05/0.3481, allocations: 50.8 kB / 0.5346 GB, free: 9.703 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.3481, allocations: 9.234 kB / 0.5346 GB, free: 9.699 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3481, allocations: 5.094 kB / 0.5346 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.3481, allocations: 1.219 kB / 0.5346 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.29e-05/0.3482, allocations: 4.469 kB / 0.5346 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.3482, allocations: 1.562 kB / 0.5346 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.826e-05/0.3482, allocations: 5.375 kB / 0.5346 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.311e-06/0.3482, allocations: 1.719 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 9.543e-05/0.3483, allocations: 127 kB / 0.5348 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.443e-05/0.3484, allocations: 9.188 kB / 0.5348 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001088/0.3485, allocations: 41.31 kB / 0.5348 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.3485, allocations: 0 / 0.5348 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.3485, allocations: 96 / 0.5348 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.3485, allocations: 5.953 kB / 0.5348 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001521/0.3487, allocations: 155 kB / 0.535 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/0.3487, allocations: 1.688 kB / 0.535 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.3487, allocations: 7.969 kB / 0.535 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.3487, allocations: 0 / 0.535 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.231e-06/0.3487, allocations: 1.781 kB / 0.535 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.3487, allocations: 0 / 0.535 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.3487, allocations: 0 / 0.535 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.837e-05/0.3488, allocations: 138.6 kB / 0.5351 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.556e-05/0.3488, allocations: 79.05 kB / 0.5352 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.909e-06/0.3489, allocations: 0 / 0.5352 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.316e-05/0.3489, allocations: 5.875 kB / 0.5352 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.4e-05/0.3489, allocations: 0 / 0.5352 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.3489, allocations: 1.906 kB / 0.5352 GB, free: 9.062 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.071e-05/0.349, allocations: 77.22 kB / 0.5353 GB, free: 8.988 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.349, allocations: 0 / 0.5353 GB, free: 8.988 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002823/0.3493, allocations: 39.86 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.0005122/0.3498, allocations: 0.7054 MB / 0.536 GB, free: 8.297 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.843e-05/0.3499, allocations: 8.562 kB / 0.536 GB, free: 8.297 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.3499, allocations: 0 / 0.536 GB, free: 8.297 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.907e-05/0.3499, allocations: 27.95 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.0002002/0.3501, allocations: 8.422 kB / 0.536 GB, free: 8.262 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003822/0.3505, allocations: 129 kB / 0.5361 GB, free: 8.113 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002392/0.3508, allocations: 0.6762 MB / 0.5368 GB, free: 7.414 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.276e-05/0.3508, allocations: 1.375 kB / 0.5368 GB, free: 7.414 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.211e-05/0.3508, allocations: 12.81 kB / 0.5368 GB, free: 7.402 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3508, allocations: 0 / 0.5368 GB, free: 7.402 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01707/0.3679, allocations: 1.877 MB / 0.5387 GB, free: 6.348 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.265/7.633, allocations: 8.188 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