Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.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.00135/0.00135, allocations: 128.5 kB / 17.79 MB, free: 5.246 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.001461/0.001461, allocations: 211.2 kB / 20.75 MB, free: 2.293 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.496/1.496, 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2631/0.2631, allocations: 44.91 MB / 355.1 MB, free: 12.31 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001928, allocations: 67.89 kB / 499.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1251, allocations: 65.42 MB / 0.5517 GB, free: 10.15 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001542/0.1267, allocations: 494.2 kB / 0.5522 GB, free: 9.668 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002022/0.1287, allocations: 1.279 MB / 0.5534 GB, free: 8.383 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.362e-05/0.1287, allocations: 0 / 0.5534 GB, free: 8.383 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.559e-05/0.1288, allocations: 3.938 kB / 0.5534 GB, free: 8.379 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001486/0.1289, allocations: 15.94 kB / 0.5535 GB, free: 8.363 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488: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.001069/0.13, allocations: 241.2 kB / 0.5537 GB, free: 8.129 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.714e-05/0.13, allocations: 7.984 kB / 0.5537 GB, free: 8.121 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.392e-05/0.1301, allocations: 8 kB / 0.5537 GB, free: 8.113 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.454e-05/0.1301, allocations: 0 / 0.5537 GB, free: 8.113 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.791e-05/0.1301, allocations: 9.953 kB / 0.5537 GB, free: 8.105 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.953e-06/0.1302, allocations: 0 / 0.5537 GB, free: 8.105 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004044/0.1342, allocations: 0.7016 MB / 0.5544 GB, free: 7.523 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.218e-05/0.1342, allocations: 0 / 0.5544 GB, free: 7.523 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.296e-05/0.1342, allocations: 0 / 0.5544 GB, free: 7.523 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003409/0.1346, allocations: 187.5 kB / 0.5546 GB, free: 7.34 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1346, allocations: 0 / 0.5546 GB, free: 7.34 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1346, allocations: 0 / 0.5546 GB, free: 7.34 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.1346, allocations: 0 / 0.5546 GB, free: 7.34 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004811/0.1351, allocations: 390.6 kB / 0.555 GB, free: 6.906 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.1351, allocations: 8.031 kB / 0.555 GB, free: 6.898 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.787e-05/0.1351, allocations: 34.75 kB / 0.555 GB, free: 6.855 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.435e-05/0.1352, allocations: 8.875 kB / 0.555 GB, free: 6.848 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.1353, allocations: 164.4 kB / 0.5552 GB, free: 6.648 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.1353, allocations: 384 / 0.5552 GB, free: 6.648 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.153e-06/0.1353, allocations: 384 / 0.5552 GB, free: 6.648 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.043e-05/0.1354, allocations: 41.56 kB / 0.5552 GB, free: 6.602 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.1354, allocations: 0 / 0.5552 GB, free: 6.602 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-06/0.1354, allocations: 0 / 0.5552 GB, free: 6.602 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.376e-06/0.1354, allocations: 0 / 0.5552 GB, free: 6.602 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.589e-05/0.1354, allocations: 0 / 0.5552 GB, free: 6.602 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001624/0.1356, allocations: 149.7 kB / 0.5553 GB, free: 6.406 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.649e-05/0.1356, allocations: 22.52 kB / 0.5554 GB, free: 6.375 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.007e-05/0.1357, allocations: 12.94 kB / 0.5554 GB, free: 6.359 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.888e-06/0.1357, allocations: 3.938 kB / 0.5554 GB, free: 6.355 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.89e-05/0.1357, allocations: 56.27 kB / 0.5554 GB, free: 6.285 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.1357, allocations: 0 / 0.5554 GB, free: 6.285 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001815/0.1359, allocations: 67.41 kB / 0.5555 GB, free: 6.207 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.788e-05/0.136, allocations: 85.05 kB / 0.5556 GB, free: 6.105 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.872e-05/0.136, allocations: 93.84 kB / 0.5557 GB, free: 6.004 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.304e-05/0.1361, allocations: 25.7 kB / 0.5557 GB, free: 5.973 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.908e-05/0.1361, allocations: 84.14 kB / 0.5558 GB, free: 5.887 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.365e-05/0.1361, allocations: 0 / 0.5558 GB, free: 5.887 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.042e-05/0.1361, allocations: 13.72 kB / 0.5558 GB, free: 5.867 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.1363, allocations: 319 kB / 0.5561 GB, free: 5.547 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.768e-06/0.1363, allocations: 4 kB / 0.5561 GB, free: 5.543 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.723e-06/0.1363, allocations: 0 / 0.5561 GB, free: 5.543 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.47e-05/0.1364, allocations: 64.25 kB / 0.5562 GB, free: 5.465 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1364, allocations: 0 / 0.5562 GB, free: 5.465 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.001e-05/0.1365, allocations: 71.3 kB / 0.5562 GB, free: 5.383 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.628e-05/0.1365, allocations: 33.7 kB / 0.5563 GB, free: 5.344 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.1365, allocations: 3.938 kB / 0.5563 GB, free: 5.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.1365, allocations: 0 / 0.5563 GB, free: 5.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.655e-06/0.1365, allocations: 8.078 kB / 0.5563 GB, free: 5.332 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.1365, allocations: 0 / 0.5563 GB, free: 5.332 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.019e-05/0.1365, allocations: 3.938 kB / 0.5563 GB, free: 5.328 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.27e-06/0.1366, allocations: 0 / 0.5563 GB, free: 5.328 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.0001015/0.1367, allocations: 137.7 kB / 0.5564 GB, free: 5.18 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.184e-05/0.1367, allocations: 3.938 kB / 0.5564 GB, free: 5.176 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.098e-05/0.1367, allocations: 7.125 kB / 0.5564 GB, free: 5.172 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.1367, allocations: 0 / 0.5564 GB, free: 5.172 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1367, allocations: 0 / 0.5564 GB, free: 5.172 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.1367, allocations: 7.938 kB / 0.5564 GB, free: 5.164 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00014/0.1368, allocations: 149.7 kB / 0.5566 GB, free: 4.969 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.1368, allocations: 3.938 kB / 0.5566 GB, free: 4.965 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.1368, allocations: 4 kB / 0.5566 GB, free: 4.961 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.1368, allocations: 0 / 0.5566 GB, free: 4.961 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.1368, allocations: 4 kB / 0.5566 GB, free: 4.957 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.1368, allocations: 0 / 0.5566 GB, free: 4.957 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1368, allocations: 0 / 0.5566 GB, free: 4.957 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001165/0.137, allocations: 98.77 kB / 0.5567 GB, free: 4.836 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.649e-05/0.137, allocations: 81.05 kB / 0.5567 GB, free: 4.738 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/0.137, allocations: 4 kB / 0.5568 GB, free: 4.734 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.271e-05/0.137, allocations: 0 / 0.5568 GB, free: 4.734 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.362e-05/0.1371, allocations: 7.969 kB / 0.5568 GB, free: 4.727 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/0.1371, allocations: 0 / 0.5568 GB, free: 4.727 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.246e-05/0.1371, allocations: 79.28 kB / 0.5568 GB, free: 4.648 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1371, allocations: 0 / 0.5568 GB, free: 4.648 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003173/0.1374, allocations: 59.86 kB / 0.5569 GB, free: 4.59 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.001193/0.1386, allocations: 0.8634 MB / 0.5577 GB, free: 3.762 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000107/0.1387, allocations: 67.28 kB / 0.5578 GB, free: 3.684 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.1387, allocations: 4 kB / 0.5578 GB, free: 3.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.821e-05/0.1388, allocations: 51.41 kB / 0.5579 GB, free: 3.617 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001353/0.1389, allocations: 8.125 kB / 0.5579 GB, free: 3.609 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003833/0.1393, allocations: 134.6 kB / 0.558 GB, free: 3.438 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003057/0.1396, allocations: 0.669 MB / 0.5586 GB, free: 2.742 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.203e-05/0.1396, allocations: 4 kB / 0.5586 GB, free: 2.738 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.758e-05/0.1396, allocations: 7.438 kB / 0.5587 GB, free: 2.73 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1396, allocations: 0 / 0.5587 GB, free: 2.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02653/0.1662, allocations: 2.542 MB / 0.5611 GB, free: 268 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.288/8.454, allocations: 0 / 0.5611 GB, free: 268 kB / 414.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 11.540564145892859]