Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.001677/0.001677, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001935/0.001935, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.458/1.458, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.2218/0.2218, allocations: 46.92 MB / 357.1 MB, free: 10.31 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.Test02RegFun3,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001894/0.001894, allocations: 67.89 kB / 0.4909 GB, free: 7.98 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.114, allocations: 65.99 MB / 0.5554 GB, free: 5.867 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001663/0.1157, allocations: 496.8 kB / 0.5558 GB, free: 5.379 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001923/0.1176, allocations: 1.419 MB / 0.5572 GB, free: 3.941 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.513e-05/0.1176, allocations: 0 / 0.5572 GB, free: 3.941 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.575e-05/0.1176, allocations: 0 / 0.5572 GB, free: 3.941 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 2.224e-05/0.1176, allocations: 0 / 0.5572 GB, free: 3.941 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007164/0.1184, allocations: 219.4 kB / 0.5574 GB, free: 3.73 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.806e-05/0.1184, allocations: 11.98 kB / 0.5574 GB, free: 3.719 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.301e-05/0.1185, allocations: 3.984 kB / 0.5574 GB, free: 3.715 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.516e-05/0.1185, allocations: 4 kB / 0.5574 GB, free: 3.711 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.331e-05/0.1185, allocations: 3.984 kB / 0.5574 GB, free: 3.707 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.488e-06/0.1185, allocations: 0 / 0.5574 GB, free: 3.707 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004372/0.119, allocations: 283.6 kB / 0.5577 GB, free: 3.43 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.02e-05/0.119, allocations: 3.938 kB / 0.5577 GB, free: 3.426 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.825e-05/0.119, allocations: 4 kB / 0.5577 GB, free: 3.422 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002191/0.1192, allocations: 143.6 kB / 0.5579 GB, free: 3.281 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1192, allocations: 0 / 0.5579 GB, free: 3.281 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1192, allocations: 0 / 0.5579 GB, free: 3.281 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.559e-06/0.1192, allocations: 0 / 0.5579 GB, free: 3.281 MB / 414.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.0003926/0.1196, allocations: 335.4 kB / 0.5582 GB, free: 2.906 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.1196, allocations: 8.031 kB / 0.5582 GB, free: 2.898 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.133e-05/0.1197, allocations: 42.73 kB / 0.5582 GB, free: 2.848 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.028e-05/0.1197, allocations: 8.891 kB / 0.5582 GB, free: 2.84 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.1198, allocations: 164.3 kB / 0.5584 GB, free: 2.641 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.879e-06/0.1198, allocations: 4.312 kB / 0.5584 GB, free: 2.637 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.141e-06/0.1198, allocations: 384 / 0.5584 GB, free: 2.637 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001048/0.12, allocations: 45.81 kB / 0.5584 GB, free: 2.586 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.12, allocations: 0 / 0.5584 GB, free: 2.586 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.746e-06/0.12, allocations: 0 / 0.5584 GB, free: 2.586 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.12, allocations: 0 / 0.5584 GB, free: 2.586 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.009e-05/0.12, allocations: 7.938 kB / 0.5585 GB, free: 2.578 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003476/0.1203, allocations: 248.9 kB / 0.5587 GB, free: 2.285 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.098e-05/0.1204, allocations: 14.58 kB / 0.5587 GB, free: 2.262 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.54e-05/0.1204, allocations: 8.922 kB / 0.5587 GB, free: 2.25 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.586e-06/0.1204, allocations: 0 / 0.5587 GB, free: 2.25 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.1204, allocations: 30.56 kB / 0.5587 GB, free: 2.211 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.1204, allocations: 4 kB / 0.5587 GB, free: 2.207 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001399/0.1206, allocations: 45.62 kB / 0.5588 GB, free: 2.156 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4e-05/0.1206, allocations: 51.41 kB / 0.5588 GB, free: 2.094 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.807e-05/0.1207, allocations: 97.8 kB / 0.5589 GB, free: 1.988 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.695e-05/0.1207, allocations: 25.7 kB / 0.559 GB, free: 1.957 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.74e-05/0.1208, allocations: 84.09 kB / 0.559 GB, free: 1.871 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.015e-05/0.1208, allocations: 7.953 kB / 0.559 GB, free: 1.863 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.091e-05/0.1208, allocations: 13.97 kB / 0.5591 GB, free: 1.844 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.121, allocations: 322.8 kB / 0.5594 GB, free: 1.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.303e-05/0.121, allocations: 4 kB / 0.5594 GB, free: 1.516 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.498e-05/0.121, allocations: 22.58 kB / 0.5594 GB, free: 1.484 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.874e-05/0.121, allocations: 22.52 kB / 0.5594 GB, free: 1.453 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.121, allocations: 4 kB / 0.5594 GB, free: 1.449 MB / 414.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.684e-05/0.1211, allocations: 49.62 kB / 0.5595 GB, free: 1.395 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.1211, allocations: 8 kB / 0.5595 GB, free: 1.387 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.818e-06/0.1211, allocations: 0 / 0.5595 GB, free: 1.387 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/0.1212, allocations: 0 / 0.5595 GB, free: 1.387 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.439e-05/0.1212, allocations: 4 kB / 0.5595 GB, free: 1.383 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.271e-06/0.1212, allocations: 7.984 kB / 0.5595 GB, free: 1.375 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.616e-05/0.1212, allocations: 0 / 0.5595 GB, free: 1.375 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.034e-06/0.1212, allocations: 7.938 kB / 0.5595 GB, free: 1.367 MB / 414.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 8.512e-05/0.1213, allocations: 117.9 kB / 0.5596 GB, free: 1.242 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.198e-05/0.1213, allocations: 0 / 0.5596 GB, free: 1.242 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.547e-05/0.1214, allocations: 44.75 kB / 0.5596 GB, free: 1.195 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1214, allocations: 0 / 0.5596 GB, free: 1.195 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1214, allocations: 0 / 0.5596 GB, free: 1.195 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.1214, allocations: 8.078 kB / 0.5597 GB, free: 1.188 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001656/0.1216, allocations: 153.6 kB / 0.5598 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.1216, allocations: 4.031 kB / 0.5598 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.197e-06/0.1216, allocations: 7.984 kB / 0.5598 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-06/0.1216, allocations: 7.938 kB / 0.5598 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.749e-06/0.1216, allocations: 0 / 0.5598 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1216, allocations: 0 / 0.5598 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1216, allocations: 0 / 0.5598 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001126/0.1217, allocations: 135.4 kB / 0.5599 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.127e-05/0.1218, allocations: 81.14 kB / 0.56 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.115e-05/0.1218, allocations: 3.984 kB / 0.56 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.606e-05/0.1219, allocations: 4 kB / 0.56 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.207e-06/0.1219, allocations: 0 / 0.56 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.838e-06/0.1219, allocations: 0 / 0.56 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.85e-05/0.1219, allocations: 79.28 kB / 0.5601 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1219, allocations: 0 / 0.5601 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002845/0.1222, allocations: 35.94 kB / 0.5601 GB, free: 0.6016 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.000607/0.1228, allocations: 0.7163 MB / 0.5608 GB, free: 15.86 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 7.272e-05/0.1229, allocations: 8 kB / 0.5608 GB, free: 15.85 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1229, allocations: 0 / 0.5608 GB, free: 15.85 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 7.929e-05/0.1229, allocations: 25.7 kB / 0.5609 GB, free: 15.82 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002037/0.1232, allocations: 12.22 kB / 0.5609 GB, free: 15.8 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003757/0.1235, allocations: 118.6 kB / 0.561 GB, free: 15.65 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002941/0.1238, allocations: 0.6768 MB / 0.5617 GB, free: 14.95 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.97e-05/0.1238, allocations: 0 / 0.5617 GB, free: 14.95 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.437e-05/0.1239, allocations: 11.44 kB / 0.5617 GB, free: 14.93 MB / 430.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1239, allocations: 0 / 0.5617 GB, free: 14.93 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02248/0.1464, allocations: 1.855 MB / 0.5635 GB, free: 13.16 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.818/7.965, allocations: 6.406 kB / 0.5635 GB, free: 13.16 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --stepSize=0.019992 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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: 10.861452534096316]