Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.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.001869/0.001869, allocations: 112 kB / 20.48 MB, free: 1.27 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.002313/0.002313, allocations: 206.4 kB / 23.77 MB, free: 4.445 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.53/1.53, allocations: 230.5 MB / 257.4 MB, free: 7.734 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.2314/0.2314, allocations: 46.95 MB / 360.9 MB, free: 3.891 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.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002293/0.002293, allocations: 75.88 kB / 0.4962 GB, free: 7.52 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3211/0.3234, allocations: 66.08 MB / 0.5607 GB, free: 3.883 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001639/0.325, allocations: 489.1 kB / 0.5612 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002205/0.3272, allocations: 1.35 MB / 0.5625 GB, free: 2.055 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.147e-05/0.3272, allocations: 0 / 0.5625 GB, free: 2.055 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.379e-05/0.3273, allocations: 7.875 kB / 0.5625 GB, free: 2.047 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001788/0.3274, allocations: 8 kB / 0.5625 GB, free: 2.039 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:466:3-498:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001092/0.3285, allocations: 267.4 kB / 0.5628 GB, free: 1.781 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.864e-05/0.3286, allocations: 3.984 kB / 0.5628 GB, free: 1.777 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.438e-05/0.3286, allocations: 4 kB / 0.5628 GB, free: 1.773 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.971e-05/0.3286, allocations: 7.922 kB / 0.5628 GB, free: 1.766 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.956e-05/0.3287, allocations: 0 / 0.5628 GB, free: 1.766 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.193e-06/0.3287, allocations: 4 kB / 0.5628 GB, free: 1.762 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004126/0.3328, allocations: 0.7124 MB / 0.5635 GB, free: 1.176 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.935e-06/0.3328, allocations: 0 / 0.5635 GB, free: 1.176 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.019e-05/0.3328, allocations: 3.938 kB / 0.5635 GB, free: 1.172 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000327/0.3332, allocations: 169.6 kB / 0.5637 GB, free: 1.008 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.3332, allocations: 0 / 0.5637 GB, free: 1.008 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3332, allocations: 3.938 kB / 0.5637 GB, free: 1.004 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.3332, allocations: 4 kB / 0.5637 GB, free: 1 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.0004264/0.3336, allocations: 315.7 kB / 0.564 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.3336, allocations: 8.031 kB / 0.564 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.472e-05/0.3337, allocations: 38.69 kB / 0.564 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.434e-05/0.3337, allocations: 4.875 kB / 0.564 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.92e-05/0.3338, allocations: 106.5 kB / 0.5641 GB, free: 476 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.3338, allocations: 384 / 0.5641 GB, free: 476 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.476e-06/0.3338, allocations: 4.375 kB / 0.5641 GB, free: 472 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001045/0.3339, allocations: 59.95 kB / 0.5642 GB, free: 400 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.3339, allocations: 7.938 kB / 0.5642 GB, free: 392 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.693e-06/0.3339, allocations: 0 / 0.5642 GB, free: 392 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.336e-06/0.3339, allocations: 4 kB / 0.5642 GB, free: 388 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.869e-05/0.334, allocations: 25.7 kB / 0.5642 GB, free: 356 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001395/0.3341, allocations: 116.8 kB / 0.5643 GB, free: 196 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.501e-05/0.3342, allocations: 52.25 kB / 0.5644 GB, free: 128 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.955e-05/0.3342, allocations: 34.55 kB / 0.5644 GB, free: 84 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.834e-06/0.3342, allocations: 0 / 0.5644 GB, free: 84 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.502e-05/0.3343, allocations: 60.33 kB / 0.5645 GB, free: 8 kB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.3343, allocations: 3.938 kB / 0.5645 GB, free: 4 kB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002251/0.3345, allocations: 122.7 kB / 0.5646 GB, free: 15.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.144e-05/0.3346, allocations: 81.17 kB / 0.5647 GB, free: 15.76 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.874e-05/0.3346, allocations: 97.86 kB / 0.5648 GB, free: 15.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.467e-05/0.3346, allocations: 25.7 kB / 0.5648 GB, free: 15.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.773e-05/0.3347, allocations: 80.14 kB / 0.5649 GB, free: 15.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.454e-05/0.3347, allocations: 4 kB / 0.5649 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.929e-05/0.3347, allocations: 13.72 kB / 0.5649 GB, free: 15.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.3349, allocations: 314.8 kB / 0.5652 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.263e-05/0.3349, allocations: 29.7 kB / 0.5652 GB, free: 15.17 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.947e-05/0.3349, allocations: 25.7 kB / 0.5652 GB, free: 15.14 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.164e-05/0.335, allocations: 60.45 kB / 0.5653 GB, free: 15.06 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.335, allocations: 4 kB / 0.5653 GB, free: 15.06 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001032/0.3351, allocations: 97.05 kB / 0.5654 GB, free: 14.95 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.253e-05/0.3351, allocations: 37.64 kB / 0.5654 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.868e-06/0.3351, allocations: 3.938 kB / 0.5654 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.3351, allocations: 0 / 0.5654 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.845e-06/0.3351, allocations: 4 kB / 0.5654 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.927e-06/0.3351, allocations: 0 / 0.5654 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.913e-05/0.3351, allocations: 4 kB / 0.5654 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.651e-06/0.3351, allocations: 0 / 0.5654 GB, free: 14.89 MB / 414.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.915e-05/0.3352, allocations: 135.6 kB / 0.5656 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.442e-05/0.3353, allocations: 11.92 kB / 0.5656 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.365e-05/0.3353, allocations: 7.156 kB / 0.5656 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.3353, allocations: 0 / 0.5656 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.3353, allocations: 0 / 0.5656 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-06/0.3353, allocations: 0 / 0.5656 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.327e-05/0.3354, allocations: 120.7 kB / 0.5657 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.3354, allocations: 0 / 0.5657 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.434e-06/0.3354, allocations: 3.984 kB / 0.5657 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.3354, allocations: 3.938 kB / 0.5657 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.27e-06/0.3354, allocations: 0 / 0.5657 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.3354, allocations: 4 kB / 0.5657 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.12e-07/0.3354, allocations: 4 kB / 0.5657 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001289/0.3355, allocations: 120.5 kB / 0.5658 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.73e-06/0.3355, allocations: 3.984 kB / 0.5658 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.485e-05/0.3355, allocations: 11.88 kB / 0.5658 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.166e-05/0.3356, allocations: 0 / 0.5658 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.246e-05/0.3356, allocations: 0 / 0.5658 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-06/0.3356, allocations: 0 / 0.5658 GB, free: 14.38 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.002e-05/0.3356, allocations: 83.28 kB / 0.5659 GB, free: 14.3 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3356, allocations: 0 / 0.5659 GB, free: 14.3 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002985/0.3359, allocations: 67.92 kB / 0.566 GB, free: 14.23 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: 1 (result) * Number of discrete states: 1 (result) * 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: 1 * 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.001128/0.337, allocations: 0.8802 MB / 0.5669 GB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001367/0.3372, allocations: 126.7 kB / 0.567 GB, free: 13.22 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3372, allocations: 0 / 0.567 GB, free: 13.22 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.198e-05/0.3372, allocations: 81.11 kB / 0.567 GB, free: 13.12 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001325/0.3374, allocations: 3.938 kB / 0.5671 GB, free: 13.12 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003633/0.3377, allocations: 168.1 kB / 0.5672 GB, free: 12.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.338e-05/0.3378, allocations: 55.36 kB / 0.5673 GB, free: 12.83 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.905e-06/0.3378, allocations: 4.125 kB / 0.5673 GB, free: 12.83 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.76e-05/0.3378, allocations: 11.44 kB / 0.5673 GB, free: 12.82 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3378, allocations: 0 / 0.5673 GB, free: 12.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03266/0.3705, allocations: 3.149 MB / 0.5704 GB, free: 9.773 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.41, allocations: 3.859 kB / 0.5704 GB, free: 9.77 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.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: 14.375727891921997]