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.001331/0.001331, allocations: 110 kB / 20.43 MB, free: 1.453 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.001517/0.001517, allocations: 212.5 kB / 23.74 MB, free: 4.66 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.482/1.482, allocations: 230.5 MB / 257.4 MB, free: 7.988 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.2356/0.2356, allocations: 46.91 MB / 360.8 MB, free: 4.195 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.002352/0.002352, allocations: 83.84 kB / 0.4962 GB, free: 7.785 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3587, allocations: 66.08 MB / 0.5607 GB, free: 4.316 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001719/0.3605, allocations: 481.1 kB / 0.5612 GB, free: 3.848 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002383/0.3628, allocations: 1.373 MB / 0.5625 GB, free: 2.473 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.418e-05/0.3629, allocations: 0 / 0.5625 GB, free: 2.473 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.673e-05/0.3629, allocations: 3.938 kB / 0.5625 GB, free: 2.469 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000182/0.3631, allocations: 16 kB / 0.5625 GB, free: 2.453 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.00124/0.3643, allocations: 261.8 kB / 0.5628 GB, free: 2.199 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.141e-05/0.3644, allocations: 0 / 0.5628 GB, free: 2.199 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.735e-05/0.3644, allocations: 4 kB / 0.5628 GB, free: 2.195 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.709e-05/0.3644, allocations: 3.938 kB / 0.5628 GB, free: 2.191 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.487e-05/0.3645, allocations: 11.98 kB / 0.5628 GB, free: 2.18 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.915e-06/0.3645, allocations: 0 / 0.5628 GB, free: 2.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004339/0.3689, allocations: 0.7429 MB / 0.5635 GB, free: 1.562 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.718e-06/0.3689, allocations: 0 / 0.5635 GB, free: 1.562 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.206e-05/0.3689, allocations: 0 / 0.5635 GB, free: 1.562 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003329/0.3692, allocations: 185.5 kB / 0.5637 GB, free: 1.383 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.3692, allocations: 0 / 0.5637 GB, free: 1.383 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3692, allocations: 0 / 0.5637 GB, free: 1.383 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.3692, allocations: 4 kB / 0.5637 GB, free: 1.379 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.0004696/0.3697, allocations: 315.7 kB / 0.564 GB, free: 1.031 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.266e-05/0.3698, allocations: 8.031 kB / 0.564 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.353e-05/0.3698, allocations: 34.73 kB / 0.5641 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.179e-05/0.3698, allocations: 0.9375 kB / 0.5641 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.37, allocations: 110.5 kB / 0.5642 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.198e-06/0.37, allocations: 384 / 0.5642 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.37, allocations: 4.312 kB / 0.5642 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001033/0.3701, allocations: 34.27 kB / 0.5642 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.3701, allocations: 3.938 kB / 0.5642 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.316e-06/0.3701, allocations: 3.938 kB / 0.5642 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.3701, allocations: 0 / 0.5642 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.077e-05/0.3701, allocations: 7.938 kB / 0.5642 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001567/0.3703, allocations: 120.8 kB / 0.5643 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.701e-05/0.3703, allocations: 18.61 kB / 0.5643 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.592e-05/0.3703, allocations: 4.859 kB / 0.5643 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.309e-06/0.3704, allocations: 4 kB / 0.5644 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.488e-05/0.3704, allocations: 60.33 kB / 0.5644 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.133e-06/0.3704, allocations: 0 / 0.5644 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002214/0.3706, allocations: 75.27 kB / 0.5645 GB, free: 440 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/0.3707, allocations: 77.11 kB / 0.5646 GB, free: 344 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.012e-05/0.3708, allocations: 93.86 kB / 0.5646 GB, free: 240 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.3708, allocations: 25.95 kB / 0.5647 GB, free: 208 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.153e-05/0.3708, allocations: 88.14 kB / 0.5648 GB, free: 116 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.491e-05/0.3708, allocations: 0 / 0.5648 GB, free: 116 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.257e-05/0.3709, allocations: 13.72 kB / 0.5648 GB, free: 96 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.3711, allocations: 314.8 kB / 0.5651 GB, free: 15.78 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.184e-05/0.3711, allocations: 0 / 0.5651 GB, free: 15.78 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.518e-06/0.3711, allocations: 4 kB / 0.5651 GB, free: 15.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.854e-05/0.3711, allocations: 64.27 kB / 0.5651 GB, free: 15.7 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3711, allocations: 4.062 kB / 0.5651 GB, free: 15.69 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.916e-05/0.3712, allocations: 71.28 kB / 0.5652 GB, free: 15.61 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.868e-05/0.3713, allocations: 33.64 kB / 0.5652 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.748e-06/0.3713, allocations: 0 / 0.5652 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.3713, allocations: 0 / 0.5652 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.91e-07/0.3713, allocations: 0 / 0.5652 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.3713, allocations: 4 kB / 0.5652 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.157e-05/0.3713, allocations: 0 / 0.5652 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.3713, allocations: 0 / 0.5652 GB, free: 15.57 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 0.0001075/0.3714, allocations: 140.9 kB / 0.5654 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.1e-05/0.3715, allocations: 3.938 kB / 0.5654 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.601e-05/0.3715, allocations: 11.14 kB / 0.5654 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-06/0.3715, allocations: 0 / 0.5654 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.3715, allocations: 3.938 kB / 0.5654 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-06/0.3715, allocations: 0 / 0.5654 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.739e-05/0.3716, allocations: 116.8 kB / 0.5655 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3716, allocations: 0 / 0.5655 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.3716, allocations: 0 / 0.5655 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.99e-06/0.3716, allocations: 3.938 kB / 0.5655 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.3716, allocations: 11.98 kB / 0.5655 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.3716, allocations: 4 kB / 0.5655 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3716, allocations: 0 / 0.5655 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001237/0.3717, allocations: 94.72 kB / 0.5656 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.5e-06/0.3717, allocations: 3.984 kB / 0.5656 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.437e-05/0.3717, allocations: 3.938 kB / 0.5656 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.499e-05/0.3718, allocations: 4 kB / 0.5656 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.175e-05/0.3718, allocations: 0 / 0.5656 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-06/0.3718, allocations: 4.031 kB / 0.5656 GB, free: 15.08 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.151e-05/0.3718, allocations: 79.28 kB / 0.5657 GB, free: 15 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3718, allocations: 4 kB / 0.5657 GB, free: 15 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003203/0.3721, allocations: 63.8 kB / 0.5658 GB, free: 14.94 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.001159/0.3733, allocations: 0.8587 MB / 0.5666 GB, free: 14.1 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001167/0.3734, allocations: 59.41 kB / 0.5667 GB, free: 14.03 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3734, allocations: 0 / 0.5667 GB, free: 14.03 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.385e-05/0.3735, allocations: 63.39 kB / 0.5667 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001359/0.3736, allocations: 4 kB / 0.5667 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003836/0.374, allocations: 130.5 kB / 0.5669 GB, free: 13.78 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/0.3743, allocations: 0.669 MB / 0.5675 GB, free: 13.09 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.268e-05/0.3743, allocations: 3.984 kB / 0.5675 GB, free: 13.08 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.238e-05/0.3744, allocations: 19.56 kB / 0.5675 GB, free: 13.06 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3744, allocations: 0 / 0.5675 GB, free: 13.06 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03357/0.408, allocations: 2.658 MB / 0.5701 GB, free: 10.51 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.58, allocations: 8.062 kB / 0.5701 GB, free: 10.5 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.570298767001077]