Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001244/0.001244, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00139/0.00139, allocations: 207.4 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 230.5 MB / 258.2 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2129/0.2129, allocations: 46.92 MB / 361.6 MB, free: 4.168 MB / 286.1 MB " [Timeout remaining time 180] 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.TestRegFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003466/0.003466, allocations: 83.86 kB / 0.497 GB, free: 7.754 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3127/0.3162, allocations: 66.08 MB / 0.5615 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001658/0.3179, allocations: 0.5266 MB / 0.562 GB, free: 3.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004355/0.3183, allocations: 171.4 kB / 0.5622 GB, free: 3.602 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.575e-05/0.3183, allocations: 0 / 0.5622 GB, free: 3.602 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.809e-05/0.3183, allocations: 7.875 kB / 0.5622 GB, free: 3.594 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002445/0.3186, allocations: 31.84 kB / 0.5622 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.596e-06/0.3186, allocations: 0 / 0.5622 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.827e-05/0.3186, allocations: 23.92 kB / 0.5622 GB, free: 3.539 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.238e-05/0.3187, allocations: 7.984 kB / 0.5622 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.31e-05/0.3187, allocations: 11.94 kB / 0.5622 GB, free: 3.52 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.764e-05/0.3188, allocations: 15.91 kB / 0.5623 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.608e-06/0.3188, allocations: 0 / 0.5623 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001136/0.3189, allocations: 47.95 kB / 0.5623 GB, free: 3.457 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.025e-05/0.3189, allocations: 3.938 kB / 0.5623 GB, free: 3.453 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.237e-05/0.3189, allocations: 15.92 kB / 0.5623 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001159/0.319, allocations: 49.72 kB / 0.5624 GB, free: 3.391 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.3191, allocations: 0 / 0.5624 GB, free: 3.391 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3191, allocations: 0 / 0.5624 GB, free: 3.391 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.318e-06/0.3191, allocations: 4 kB / 0.5624 GB, free: 3.387 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003132/0.3194, allocations: 266.2 kB / 0.5626 GB, free: 3.094 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.3194, allocations: 8.031 kB / 0.5626 GB, free: 3.086 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.492e-05/0.3194, allocations: 4.188 kB / 0.5626 GB, free: 3.082 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.611e-05/0.3195, allocations: 34.75 kB / 0.5627 GB, free: 3.039 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.332e-05/0.3195, allocations: 0.9375 kB / 0.5627 GB, free: 3.039 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.842e-05/0.3196, allocations: 110.5 kB / 0.5628 GB, free: 2.906 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.3196, allocations: 8.344 kB / 0.5628 GB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.024e-05/0.3196, allocations: 8.375 kB / 0.5628 GB, free: 2.891 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001271/0.3197, allocations: 62 kB / 0.5629 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/0.3197, allocations: 0 / 0.5629 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.995e-06/0.3198, allocations: 0 / 0.5629 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.3198, allocations: 0 / 0.5629 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001013/0.3199, allocations: 59.89 kB / 0.5629 GB, free: 2.766 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001664/0.32, allocations: 144.6 kB / 0.5631 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001326/0.3202, allocations: 70.56 kB / 0.5631 GB, free: 2.504 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.038e-05/0.3202, allocations: 36.84 kB / 0.5632 GB, free: 2.465 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002127/0.3204, allocations: 23.91 kB / 0.5632 GB, free: 2.441 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.121e-05/0.3205, allocations: 46.72 kB / 0.5632 GB, free: 2.387 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.042e-06/0.3205, allocations: 0 / 0.5632 GB, free: 2.387 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002218/0.3207, allocations: 101.6 kB / 0.5633 GB, free: 2.281 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.433e-05/0.3207, allocations: 51.41 kB / 0.5634 GB, free: 2.219 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.257e-05/0.3208, allocations: 97.86 kB / 0.5635 GB, free: 2.113 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.3208, allocations: 29.7 kB / 0.5635 GB, free: 2.078 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.283e-05/0.3208, allocations: 84.12 kB / 0.5636 GB, free: 1.992 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.053e-05/0.3209, allocations: 35.69 kB / 0.5636 GB, free: 1.957 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.759e-05/0.3209, allocations: 21.72 kB / 0.5636 GB, free: 1.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.321, allocations: 314.8 kB / 0.5639 GB, free: 1.613 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.28e-05/0.3211, allocations: 15.98 kB / 0.5639 GB, free: 1.598 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.294e-05/0.3211, allocations: 23.92 kB / 0.564 GB, free: 1.574 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.917e-05/0.3212, allocations: 52.92 kB / 0.564 GB, free: 1.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3212, allocations: 0 / 0.564 GB, free: 1.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001216/0.3213, allocations: 86.2 kB / 0.5641 GB, free: 1.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.3213, allocations: 7.938 kB / 0.5641 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.3213, allocations: 0 / 0.5641 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.3213, allocations: 4.078 kB / 0.5641 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.892e-05/0.3214, allocations: 23.88 kB / 0.5641 GB, free: 1.395 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.3215, allocations: 0 / 0.5641 GB, free: 1.395 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.485e-05/0.3215, allocations: 4 kB / 0.5641 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.3215, allocations: 4 kB / 0.5641 GB, free: 1.387 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 (10): * Single equations (assignments): 10 * 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.652e-05/0.3216, allocations: 113.8 kB / 0.5642 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.456e-05/0.3216, allocations: 11.89 kB / 0.5643 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001862/0.3218, allocations: 97.5 kB / 0.5644 GB, free: 1.148 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.3218, allocations: 4 kB / 0.5644 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.3218, allocations: 0 / 0.5644 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.3218, allocations: 0 / 0.5644 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001202/0.3219, allocations: 144.7 kB / 0.5645 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3219, allocations: 0 / 0.5645 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.174e-05/0.322, allocations: 15.98 kB / 0.5645 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.322, allocations: 11.88 kB / 0.5645 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.322, allocations: 4 kB / 0.5645 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.322, allocations: 0 / 0.5645 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.322, allocations: 0 / 0.5645 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001448/0.3221, allocations: 117 kB / 0.5646 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.985e-06/0.3221, allocations: 7.938 kB / 0.5646 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.069e-05/0.3221, allocations: 0 / 0.5646 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.41e-05/0.3222, allocations: 4 kB / 0.5646 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.075e-05/0.3222, allocations: 11.98 kB / 0.5647 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.71e-06/0.3222, allocations: 4 kB / 0.5647 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.833e-05/0.3222, allocations: 75.28 kB / 0.5647 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3222, allocations: 0 / 0.5647 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0001888/0.3224, allocations: 16 kB / 0.5647 GB, free: 0.6797 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 (10): * Single equations (assignments): 10 * 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 Backend phase and start with SimCode phase: time 0.0004918/0.3229, allocations: 0.6672 MB / 0.5654 GB, free: 15.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001275/0.323, allocations: 51.91 kB / 0.5654 GB, free: 15.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.323, allocations: 0 / 0.5654 GB, free: 15.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.404e-05/0.3231, allocations: 35.92 kB / 0.5655 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001247/0.3232, allocations: 0 / 0.5655 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004117/0.3236, allocations: 170.6 kB / 0.5656 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.3239, allocations: 0.6885 MB / 0.5663 GB, free: 14.97 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.151e-05/0.3239, allocations: 7.781 kB / 0.5663 GB, free: 14.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.516e-05/0.324, allocations: 19.42 kB / 0.5663 GB, free: 14.95 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.324, allocations: 0 / 0.5663 GB, free: 14.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01869/0.3427, allocations: 1.722 MB / 0.568 GB, free: 13.33 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.18/10.52, allocations: 0 / 0.568 GB, free: 13.33 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegFunctions_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegFunctions.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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.348704100004397]