Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.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.Test01RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00111/0.00111, 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.001227/0.001227, 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.417/1.417, 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.2081/0.2081, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002401/0.002401, allocations: 83.88 kB / 480.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.3188, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001524/0.3204, allocations: 497 kB / 0.531 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001635/0.322, allocations: 1.403 MB / 0.5323 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.164e-05/0.3221, allocations: 0 / 0.5323 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.295e-05/0.3221, allocations: 1.688 kB / 0.5323 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.945e-05/0.3221, allocations: 4 kB / 0.5323 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006262/0.3228, allocations: 228.6 kB / 0.5326 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.139e-05/0.3228, allocations: 7.891 kB / 0.5326 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.261e-05/0.3228, allocations: 5.312 kB / 0.5326 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.652e-05/0.3229, allocations: 2.75 kB / 0.5326 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.38e-05/0.3229, allocations: 5.375 kB / 0.5326 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.351e-05/0.3229, allocations: 1.375 kB / 0.5326 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000427/0.3234, allocations: 286.7 kB / 0.5329 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.221e-05/0.3234, allocations: 5.141 kB / 0.5329 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.064e-05/0.3234, allocations: 8.719 kB / 0.5329 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001985/0.3236, allocations: 142.2 kB / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.3236, allocations: 1.125 kB / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3236, allocations: 0 / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.3237, allocations: 0 / 0.533 GB, free: 11.48 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003502/0.324, allocations: 331.6 kB / 0.5333 GB, free: 11.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.3241, allocations: 8.688 kB / 0.5333 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.964e-05/0.3241, allocations: 40.25 kB / 0.5334 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.37e-05/0.3241, allocations: 4.922 kB / 0.5334 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.877e-05/0.3242, allocations: 169.6 kB / 0.5335 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.3243, allocations: 8.359 kB / 0.5335 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.923e-06/0.3243, allocations: 1.625 kB / 0.5335 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.116e-05/0.3244, allocations: 37.73 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.3244, allocations: 0 / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.823e-06/0.3244, allocations: 3.938 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.446e-06/0.3244, allocations: 0 / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.984e-05/0.3244, allocations: 6.453 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001203/0.3246, allocations: 148.2 kB / 0.5337 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.869e-05/0.3246, allocations: 20.77 kB / 0.5337 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.609e-05/0.3246, allocations: 5.953 kB / 0.5338 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.165e-06/0.3246, allocations: 1.188 kB / 0.5338 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/0.3247, allocations: 43.61 kB / 0.5338 GB, free: 10.54 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.3247, allocations: 0 / 0.5338 GB, free: 10.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001211/0.3248, allocations: 36.23 kB / 0.5338 GB, free: 10.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.044e-05/0.3248, allocations: 51.53 kB / 0.5339 GB, free: 10.44 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.588e-05/0.3249, allocations: 97.2 kB / 0.534 GB, free: 10.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.187e-05/0.3249, allocations: 25.7 kB / 0.534 GB, free: 10.31 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.607e-05/0.3249, allocations: 81.27 kB / 0.5341 GB, free: 10.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.174e-05/0.325, allocations: 6.234 kB / 0.5341 GB, free: 10.22 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.588e-05/0.325, allocations: 15.94 kB / 0.5341 GB, free: 10.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.591e-05/0.3251, allocations: 311.9 kB / 0.5344 GB, free: 9.891 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.088e-05/0.3251, allocations: 1.062 kB / 0.5344 GB, free: 9.891 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.064e-06/0.3251, allocations: 6.5 kB / 0.5344 GB, free: 9.887 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.819e-05/0.3252, allocations: 12.05 kB / 0.5344 GB, free: 9.875 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.3252, allocations: 0 / 0.5344 GB, free: 9.875 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.425e-05/0.3252, allocations: 40.34 kB / 0.5345 GB, free: 9.836 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.3252, allocations: 8.625 kB / 0.5345 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.3253, allocations: 1.219 kB / 0.5345 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.3253, allocations: 0 / 0.5345 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.055e-05/0.3253, allocations: 2.312 kB / 0.5345 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.978e-06/0.3253, allocations: 0 / 0.5345 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.544e-05/0.3254, allocations: 9.156 kB / 0.5345 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-06/0.3254, allocations: 0 / 0.5345 GB, free: 9.824 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 (1): * Single equations (assignments): 1 * 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.244e-05/0.3254, allocations: 111.1 kB / 0.5346 GB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.237e-06/0.3254, allocations: 5.25 kB / 0.5346 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001032/0.3256, allocations: 53.22 kB / 0.5346 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.3256, allocations: 4.031 kB / 0.5346 GB, free: 9.652 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.095e-06/0.3256, allocations: 1.344 kB / 0.5346 GB, free: 9.652 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.3256, allocations: 0 / 0.5346 GB, free: 9.652 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.191e-05/0.3257, allocations: 148.5 kB / 0.5348 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.3257, allocations: 3.938 kB / 0.5348 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.386e-06/0.3257, allocations: 9.25 kB / 0.5348 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.3257, allocations: 0 / 0.5348 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.631e-06/0.3257, allocations: 1.312 kB / 0.5348 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.3257, allocations: 0 / 0.5348 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3257, allocations: 0 / 0.5348 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.098e-05/0.3258, allocations: 70.19 kB / 0.5349 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.688e-05/0.3258, allocations: 81.05 kB / 0.5349 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.081e-05/0.3258, allocations: 1.125 kB / 0.5349 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.106e-05/0.3259, allocations: 2.125 kB / 0.5349 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.418e-06/0.3259, allocations: 0 / 0.5349 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-06/0.3259, allocations: 1.219 kB / 0.5349 GB, free: 9.273 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.938e-05/0.326, allocations: 81.48 kB / 0.535 GB, free: 9.195 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.326, allocations: 4.125 kB / 0.535 GB, free: 9.191 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002267/0.3262, allocations: 35.41 kB / 0.5351 GB, free: 9.191 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.0004366/0.3266, allocations: 0.6311 MB / 0.5357 GB, free: 8.578 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 6.871e-05/0.3267, allocations: 7.781 kB / 0.5357 GB, free: 8.574 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3267, allocations: 6 kB / 0.5357 GB, free: 8.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.028e-05/0.3268, allocations: 31.62 kB / 0.5357 GB, free: 8.535 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000134/0.3269, allocations: 8.078 kB / 0.5357 GB, free: 8.531 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003227/0.3272, allocations: 124.6 kB / 0.5358 GB, free: 8.387 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002399/0.3275, allocations: 0.6712 MB / 0.5365 GB, free: 7.691 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.637e-05/0.3275, allocations: 1.625 kB / 0.5365 GB, free: 7.691 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.532e-05/0.3275, allocations: 7.438 kB / 0.5365 GB, free: 7.684 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3275, allocations: 64 / 0.5365 GB, free: 7.684 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01717/0.3447, allocations: 1.887 MB / 0.5384 GB, free: 6.617 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.528/7.873, allocations: 6.922 kB / 0.5384 GB, free: 6.613 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test01RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test01RegFun3.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches