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.001624/0.001624, allocations: 120.1 kB / 18.49 MB, free: 4.562 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.001953/0.001953, allocations: 215 kB / 21.45 MB, free: 1.617 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.54/1.54, allocations: 230.6 MB / 254.8 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.22/0.22, allocations: 44.91 MB / 355.8 MB, free: 12.3 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles",fmuType="cs",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.002717/0.002717, allocations: 63.91 kB / 0.4885 GB, free: 11.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.141, allocations: 65.42 MB / 0.5524 GB, free: 10.15 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001913/0.1429, allocations: 492.9 kB / 0.5529 GB, free: 9.664 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002357/0.1452, allocations: 1.278 MB / 0.5541 GB, free: 8.379 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.979e-05/0.1453, allocations: 0 / 0.5541 GB, free: 8.379 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.593e-05/0.1453, allocations: 0 / 0.5541 GB, free: 8.379 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001961/0.1455, allocations: 15.98 kB / 0.5541 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.001221/0.1467, allocations: 263.3 kB / 0.5544 GB, free: 8.109 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.469e-05/0.1468, allocations: 4 kB / 0.5544 GB, free: 8.105 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.228e-05/0.1468, allocations: 4 kB / 0.5544 GB, free: 8.102 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.638e-05/0.1468, allocations: 0 / 0.5544 GB, free: 8.102 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.118e-05/0.1469, allocations: 11.97 kB / 0.5544 GB, free: 8.09 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.135e-06/0.1469, allocations: 0 / 0.5544 GB, free: 8.09 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004132/0.151, allocations: 0.6904 MB / 0.5551 GB, free: 7.52 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.31e-05/0.1511, allocations: 3.984 kB / 0.5551 GB, free: 7.516 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.28e-05/0.1511, allocations: 0 / 0.5551 GB, free: 7.516 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003949/0.1515, allocations: 183.5 kB / 0.5553 GB, free: 7.336 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.1515, allocations: 0 / 0.5553 GB, free: 7.336 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1515, allocations: 0 / 0.5553 GB, free: 7.336 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.195e-05/0.1515, allocations: 4 kB / 0.5553 GB, free: 7.332 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.0005643/0.1521, allocations: 390.9 kB / 0.5556 GB, free: 6.898 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.1521, allocations: 8.031 kB / 0.5556 GB, free: 6.891 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.537e-05/0.1521, allocations: 192 / 0.5556 GB, free: 6.891 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.387e-05/0.1522, allocations: 34.75 kB / 0.5557 GB, free: 6.848 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.413e-05/0.1522, allocations: 4.938 kB / 0.5557 GB, free: 6.844 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001663/0.1524, allocations: 160.4 kB / 0.5558 GB, free: 6.648 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.1524, allocations: 384 / 0.5558 GB, free: 6.648 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.402e-05/0.1524, allocations: 12.06 kB / 0.5558 GB, free: 6.637 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.905e-05/0.1525, allocations: 37.62 kB / 0.5559 GB, free: 6.594 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.1525, allocations: 0 / 0.5559 GB, free: 6.594 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-06/0.1525, allocations: 0 / 0.5559 GB, free: 6.594 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.1525, allocations: 3.984 kB / 0.5559 GB, free: 6.59 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.991e-05/0.1525, allocations: 4 kB / 0.5559 GB, free: 6.586 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001603/0.1527, allocations: 145.7 kB / 0.556 GB, free: 6.395 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.992e-05/0.1527, allocations: 14.67 kB / 0.556 GB, free: 6.371 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.106e-05/0.1528, allocations: 20.78 kB / 0.5561 GB, free: 6.348 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.167e-06/0.1528, allocations: 0 / 0.5561 GB, free: 6.348 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.809e-05/0.1528, allocations: 60.2 kB / 0.5561 GB, free: 6.273 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.1528, allocations: 0 / 0.5561 GB, free: 6.273 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001911/0.153, allocations: 67.41 kB / 0.5562 GB, free: 6.195 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.412e-05/0.1531, allocations: 77.11 kB / 0.5563 GB, free: 6.102 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.876e-05/0.1531, allocations: 98.06 kB / 0.5564 GB, free: 5.996 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.539e-05/0.1532, allocations: 29.73 kB / 0.5564 GB, free: 5.961 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.888e-05/0.1532, allocations: 88.06 kB / 0.5565 GB, free: 5.871 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.309e-05/0.1532, allocations: 0 / 0.5565 GB, free: 5.871 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.277e-05/0.1532, allocations: 17.72 kB / 0.5565 GB, free: 5.848 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.1534, allocations: 310.8 kB / 0.5568 GB, free: 5.535 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.058e-05/0.1534, allocations: 0 / 0.5568 GB, free: 5.535 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.236e-06/0.1534, allocations: 3.938 kB / 0.5568 GB, free: 5.531 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.179e-05/0.1535, allocations: 68.31 kB / 0.5568 GB, free: 5.449 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1535, allocations: 0 / 0.5568 GB, free: 5.449 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.639e-05/0.1536, allocations: 71.3 kB / 0.5569 GB, free: 5.367 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.639e-05/0.1536, allocations: 33.7 kB / 0.5569 GB, free: 5.328 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.1536, allocations: 0 / 0.5569 GB, free: 5.328 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.1536, allocations: 0 / 0.5569 GB, free: 5.328 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.498e-06/0.1536, allocations: 3.984 kB / 0.557 GB, free: 5.324 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.068e-06/0.1536, allocations: 0 / 0.557 GB, free: 5.324 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.948e-05/0.1536, allocations: 3.938 kB / 0.557 GB, free: 5.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.1536, allocations: 4 kB / 0.557 GB, free: 5.316 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.000102/0.1537, allocations: 137.8 kB / 0.5571 GB, free: 5.168 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.459e-05/0.1538, allocations: 7.938 kB / 0.5571 GB, free: 5.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.536e-06/0.1538, allocations: 3.125 kB / 0.5571 GB, free: 5.16 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.1538, allocations: 3.938 kB / 0.5571 GB, free: 5.156 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.1538, allocations: 7.938 kB / 0.5571 GB, free: 5.148 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.783e-06/0.1538, allocations: 0 / 0.5571 GB, free: 5.148 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001211/0.1539, allocations: 157.6 kB / 0.5573 GB, free: 4.945 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.1539, allocations: 0 / 0.5573 GB, free: 4.945 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.11e-07/0.1539, allocations: 0 / 0.5573 GB, free: 4.945 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.1539, allocations: 4 kB / 0.5573 GB, free: 4.941 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.109e-06/0.1539, allocations: 0 / 0.5573 GB, free: 4.941 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1539, allocations: 0 / 0.5573 GB, free: 4.941 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1539, allocations: 0 / 0.5573 GB, free: 4.941 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001171/0.154, allocations: 94.77 kB / 0.5574 GB, free: 4.824 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.118e-05/0.1541, allocations: 81.11 kB / 0.5574 GB, free: 4.727 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.405e-05/0.1541, allocations: 0 / 0.5574 GB, free: 4.727 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.245e-05/0.1541, allocations: 0 / 0.5574 GB, free: 4.727 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.691e-05/0.1541, allocations: 8.016 kB / 0.5574 GB, free: 4.719 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.065e-06/0.1541, allocations: 0 / 0.5574 GB, free: 4.719 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.061e-05/0.1542, allocations: 79.28 kB / 0.5575 GB, free: 4.641 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1542, allocations: 0 / 0.5575 GB, free: 4.641 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003152/0.1545, allocations: 59.86 kB / 0.5576 GB, free: 4.582 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.00117/0.1556, allocations: 0.8634 MB / 0.5584 GB, free: 3.754 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001052/0.1558, allocations: 63.41 kB / 0.5585 GB, free: 3.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1558, allocations: 0 / 0.5585 GB, free: 3.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.72e-05/0.1558, allocations: 55.34 kB / 0.5585 GB, free: 3.613 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000126/0.1559, allocations: 4 kB / 0.5585 GB, free: 3.609 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003797/0.1563, allocations: 134.6 kB / 0.5587 GB, free: 3.438 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003268/0.1566, allocations: 0.6729 MB / 0.5593 GB, free: 2.738 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.778e-06/0.1566, allocations: 4.125 kB / 0.5593 GB, free: 2.734 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.004e-05/0.1567, allocations: 11.44 kB / 0.5593 GB, free: 2.723 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1567, allocations: 0 / 0.5593 GB, free: 2.723 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02092/0.1776, allocations: 2.578 MB / 0.5619 GB, free: 240 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.578/8.755, allocations: 11.73 kB / 0.5619 GB, free: 232 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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.91038362099789]