Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 207 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.385/1.385, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2199/0.2199, allocations: 46.95 MB / 360.9 MB, free: 4.02 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 67.91 kB / 0.4961 GB, free: 7.715 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.2906, allocations: 66.03 MB / 0.5606 GB, free: 4.113 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001558/0.2922, allocations: 0.4945 MB / 0.5611 GB, free: 3.621 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001857/0.2941, allocations: 1.354 MB / 0.5624 GB, free: 2.246 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.396e-05/0.2941, allocations: 0 / 0.5624 GB, free: 2.246 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.161e-05/0.2941, allocations: 0 / 0.5624 GB, free: 2.246 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.694e-05/0.2941, allocations: 4 kB / 0.5624 GB, free: 2.242 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006371/0.2948, allocations: 215.2 kB / 0.5626 GB, free: 2.035 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.161e-05/0.2948, allocations: 4 kB / 0.5626 GB, free: 2.031 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.586e-05/0.2948, allocations: 4 kB / 0.5626 GB, free: 2.027 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.839e-05/0.2949, allocations: 7.969 kB / 0.5626 GB, free: 2.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.432e-05/0.2949, allocations: 8 kB / 0.5626 GB, free: 2.012 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.115e-05/0.2949, allocations: 0 / 0.5626 GB, free: 2.012 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004415/0.2954, allocations: 275.6 kB / 0.5629 GB, free: 1.742 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.357e-05/0.2954, allocations: 4 kB / 0.5629 GB, free: 1.738 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.651e-05/0.2954, allocations: 7.938 kB / 0.5629 GB, free: 1.73 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002169/0.2956, allocations: 141.5 kB / 0.563 GB, free: 1.594 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.2956, allocations: 0 / 0.563 GB, free: 1.594 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2956, allocations: 0 / 0.563 GB, free: 1.594 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.958e-06/0.2956, allocations: 0 / 0.563 GB, free: 1.594 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.0003427/0.296, allocations: 262.2 kB / 0.5633 GB, free: 1.309 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.296, allocations: 12.03 kB / 0.5633 GB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.204e-05/0.296, allocations: 30.75 kB / 0.5633 GB, free: 1.258 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.155e-05/0.2961, allocations: 0.9375 kB / 0.5633 GB, free: 1.258 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001022/0.2962, allocations: 114.5 kB / 0.5634 GB, free: 1.121 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.013e-05/0.2962, allocations: 4.312 kB / 0.5634 GB, free: 1.117 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.716e-06/0.2962, allocations: 4.359 kB / 0.5634 GB, free: 1.113 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001112/0.2963, allocations: 71.45 kB / 0.5635 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.442e-06/0.2963, allocations: 0 / 0.5635 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-06/0.2963, allocations: 0 / 0.5635 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.316e-06/0.2963, allocations: 0 / 0.5635 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.939e-05/0.2963, allocations: 7.938 kB / 0.5635 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001345/0.2965, allocations: 112.8 kB / 0.5636 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.75e-05/0.2965, allocations: 26.61 kB / 0.5636 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.944e-05/0.2965, allocations: 8.844 kB / 0.5636 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.121e-05/0.2965, allocations: 8 kB / 0.5637 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.2966, allocations: 34.5 kB / 0.5637 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.2966, allocations: 0 / 0.5637 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001246/0.2967, allocations: 33.7 kB / 0.5637 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/0.2967, allocations: 51.41 kB / 0.5638 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.837e-05/0.2968, allocations: 101.8 kB / 0.5639 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.497e-05/0.2968, allocations: 25.7 kB / 0.5639 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.778e-05/0.2969, allocations: 80.39 kB / 0.564 GB, free: 460 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.034e-05/0.2969, allocations: 7.953 kB / 0.564 GB, free: 452 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.754e-05/0.2969, allocations: 13.72 kB / 0.564 GB, free: 432 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.297, allocations: 314.8 kB / 0.5643 GB, free: 108 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.778e-06/0.2971, allocations: 0 / 0.5643 GB, free: 108 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.876e-06/0.2971, allocations: 7.938 kB / 0.5643 GB, free: 100 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.375e-05/0.2971, allocations: 8.859 kB / 0.5643 GB, free: 88 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2971, allocations: 0 / 0.5643 GB, free: 88 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.852e-05/0.2971, allocations: 37.62 kB / 0.5643 GB, free: 44 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.2972, allocations: 8 kB / 0.5643 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-06/0.2972, allocations: 4.094 kB / 0.5643 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.678e-06/0.2972, allocations: 0 / 0.5643 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.766e-05/0.2972, allocations: 0 / 0.5643 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.2972, allocations: 0 / 0.5643 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.543e-05/0.2972, allocations: 4 kB / 0.5644 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.2972, allocations: 4 kB / 0.5644 GB, free: 24 kB / 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 9.647e-05/0.2973, allocations: 113.8 kB / 0.5645 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.004e-05/0.2974, allocations: 3.938 kB / 0.5645 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001204/0.2975, allocations: 48.84 kB / 0.5645 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.2975, allocations: 0 / 0.5645 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.2975, allocations: 0 / 0.5645 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-06/0.2975, allocations: 0 / 0.5645 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.853e-05/0.2976, allocations: 124.8 kB / 0.5646 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-06/0.2976, allocations: 0 / 0.5646 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.635e-06/0.2976, allocations: 3.938 kB / 0.5646 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.2976, allocations: 7.875 kB / 0.5646 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.51e-06/0.2976, allocations: 0 / 0.5646 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.2976, allocations: 0 / 0.5646 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2976, allocations: 4.031 kB / 0.5646 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.055e-05/0.2977, allocations: 69.06 kB / 0.5647 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.517e-06/0.2977, allocations: 7.938 kB / 0.5647 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.07e-05/0.2977, allocations: 0 / 0.5647 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.719e-05/0.2978, allocations: 4 kB / 0.5647 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.949e-06/0.2978, allocations: 0 / 0.5647 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.2978, allocations: 0 / 0.5647 GB, free: 15.56 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.363e-05/0.2978, allocations: 83.27 kB / 0.5648 GB, free: 15.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2978, allocations: 0 / 0.5648 GB, free: 15.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002542/0.2981, allocations: 36.06 kB / 0.5648 GB, free: 15.45 MB / 414.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.0005401/0.2986, allocations: 0.6435 MB / 0.5655 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 6.694e-05/0.2987, allocations: 4 kB / 0.5655 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2987, allocations: 0 / 0.5655 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.487e-05/0.2987, allocations: 29.7 kB / 0.5655 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001466/0.2989, allocations: 7.984 kB / 0.5655 GB, free: 14.72 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003573/0.2992, allocations: 118.6 kB / 0.5656 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.851e-05/0.2993, allocations: 55.36 kB / 0.5657 GB, free: 14.49 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.376e-05/0.2993, allocations: 4.156 kB / 0.5657 GB, free: 14.49 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.617e-05/0.2993, allocations: 7.438 kB / 0.5657 GB, free: 14.48 MB / 414.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2993, allocations: 4 kB / 0.5657 GB, free: 14.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02664/0.326, allocations: 2.392 MB / 0.568 GB, free: 12.21 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/10.72, allocations: 10.34 kB / 0.568 GB, free: 12.2 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test01RegFun3_fmu --startTime=0 --stopTime=100 --stepSize=0.019992 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test01RegFun3.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.429196070996113]