Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.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.0008228/0.0008228, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009286/0.0009286, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9257/0.9257, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2379/0.2379, allocations: 34.24 MB / 294.9 MB, free: 0.7031 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.TestWriteFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 442.1 MB, free: 1.688 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.946e-05/2.118e-05, allocations: 4.391 kB / 442.1 MB, free: 1.684 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001162/0.001183, allocations: 485 kB / 442.6 MB, free: 1.211 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004328/0.001616, allocations: 223.5 kB / 442.8 MB, free: 0.9922 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.138e-05/0.001637, allocations: 4 kB / 442.8 MB, free: 0.9883 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.54e-05/0.001653, allocations: 3.938 kB / 442.8 MB, free: 0.9844 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.063e-06/0.00166, allocations: 0 / 442.8 MB, free: 0.9844 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:289:3-320:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0002999/0.00196, allocations: 35.84 kB / 442.9 MB, free: 0.9492 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.774e-05/0.002018, allocations: 4 kB / 442.9 MB, free: 0.9453 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.346e-05/0.002061, allocations: 0 / 442.9 MB, free: 0.9453 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.367e-05/0.002095, allocations: 7.969 kB / 442.9 MB, free: 0.9375 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.688e-05/0.002122, allocations: 4 kB / 442.9 MB, free: 0.9336 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.284e-06/0.002129, allocations: 0 / 442.9 MB, free: 0.9336 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001148/0.002244, allocations: 47.89 kB / 442.9 MB, free: 0.8867 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.685e-06/0.002251, allocations: 3.938 kB / 442.9 MB, free: 0.8828 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.175e-05/0.002273, allocations: 8 kB / 443 MB, free: 0.875 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.002385, allocations: 55.8 kB / 443 MB, free: 0.8203 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.784e-06/0.002387, allocations: 0 / 443 MB, free: 0.8203 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.002388, allocations: 0 / 443 MB, free: 0.8203 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.537e-06/0.002392, allocations: 0 / 443 MB, free: 0.8203 MB / 410.7 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.0002614/0.002653, allocations: 276 kB / 443.3 MB, free: 0.5117 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.002695, allocations: 12.03 kB / 443.3 MB, free: 0.5 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.367e-05/0.002719, allocations: 30.75 kB / 443.3 MB, free: 472 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.447e-05/0.002743, allocations: 0.9375 kB / 443.3 MB, free: 472 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.599e-05/0.002799, allocations: 101.8 kB / 443.4 MB, free: 344 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.01e-05/0.002809, allocations: 384 / 443.4 MB, free: 344 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.045e-06/0.002817, allocations: 8.375 kB / 443.4 MB, free: 336 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.483e-05/0.002902, allocations: 55.97 kB / 443.5 MB, free: 268 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.062e-06/0.002908, allocations: 192 / 443.5 MB, free: 268 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.494e-06/0.002916, allocations: 384 / 443.5 MB, free: 268 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.002921, allocations: 12.06 kB / 443.5 MB, free: 256 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.271e-05/0.002944, allocations: 29.69 kB / 443.5 MB, free: 220 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.84e-05/0.003043, allocations: 124.7 kB / 443.6 MB, free: 52 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1651/0.1681, allocations: 40.28 kB / 443.7 MB, free: 44.35 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.577e-05/0.1682, allocations: 34.89 kB / 443.7 MB, free: 44.31 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.021e-05/0.1682, allocations: 2.781 kB / 443.7 MB, free: 44.31 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.042e-05/0.1682, allocations: 60.55 kB / 443.8 MB, free: 44.24 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 3.366e-06/0.1682, allocations: 0 / 443.8 MB, free: 44.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002364/0.1685, allocations: 119.4 kB / 443.9 MB, free: 44.11 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.752e-05/0.1685, allocations: 86.2 kB / 444 MB, free: 44.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.093e-05/0.1685, allocations: 93.12 kB / 444.1 MB, free: 43.92 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.654e-06/0.1685, allocations: 25.7 kB / 444.1 MB, free: 43.89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.947e-06/0.1686, allocations: 80.14 kB / 444.2 MB, free: 43.81 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.483e-05/0.1686, allocations: 4.812 kB / 444.2 MB, free: 43.81 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.996e-05/0.1686, allocations: 15.22 kB / 444.2 MB, free: 43.79 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.703e-05/0.1686, allocations: 310.8 kB / 444.5 MB, free: 43.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.914e-05/0.1687, allocations: 32.92 kB / 444.5 MB, free: 43.45 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.372e-05/0.1687, allocations: 28.27 kB / 444.6 MB, free: 43.42 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.478e-05/0.1687, allocations: 64.33 kB / 444.6 MB, free: 43.35 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.1687, allocations: 2.625 kB / 444.6 MB, free: 43.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.329e-05/0.1688, allocations: 88.64 kB / 444.7 MB, free: 43.25 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.645e-05/0.1688, allocations: 32.02 kB / 444.7 MB, free: 43.22 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.1688, allocations: 1.406 kB / 444.7 MB, free: 43.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.1688, allocations: 0 / 444.7 MB, free: 43.22 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.114e-06/0.1688, allocations: 4.5 kB / 444.7 MB, free: 43.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.1688, allocations: 0 / 444.7 MB, free: 43.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.275e-05/0.1689, allocations: 3.344 kB / 444.7 MB, free: 43.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.729e-06/0.1689, allocations: 1.406 kB / 444.8 MB, free: 43.22 MB / 410.7 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 5.616e-05/0.1689, allocations: 142 kB / 444.9 MB, free: 43.07 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.839e-06/0.1689, allocations: 5.953 kB / 444.9 MB, free: 43.07 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.729e-05/0.169, allocations: 5.906 kB / 444.9 MB, free: 43.07 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.169, allocations: 0 / 444.9 MB, free: 43.07 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.169, allocations: 0 / 444.9 MB, free: 43.07 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.169, allocations: 0 / 444.9 MB, free: 43.07 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.713e-05/0.169, allocations: 119.4 kB / 445 MB, free: 42.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.169, allocations: 3.875 kB / 445 MB, free: 42.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.585e-06/0.169, allocations: 3.141 kB / 445 MB, free: 42.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.71e-07/0.169, allocations: 2.531 kB / 445 MB, free: 42.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.195e-06/0.169, allocations: 1.531 kB / 445 MB, free: 42.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.01e-07/0.169, allocations: 1.781 kB / 445 MB, free: 42.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.5e-07/0.169, allocations: 0 / 445 MB, free: 42.91 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.902e-05/0.1691, allocations: 124.8 kB / 445.2 MB, free: 42.79 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.701e-06/0.1691, allocations: 1.5 kB / 445.2 MB, free: 42.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.358e-05/0.1691, allocations: 0 / 445.2 MB, free: 42.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.223e-06/0.1691, allocations: 8.125 kB / 445.2 MB, free: 42.79 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.564e-05/0.1691, allocations: 1.062 kB / 445.2 MB, free: 42.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-06/0.1691, allocations: 0 / 445.2 MB, free: 42.79 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.04e-05/0.1692, allocations: 75.28 kB / 445.2 MB, free: 42.71 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1692, allocations: 0 / 445.2 MB, free: 42.71 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001713/0.1693, allocations: 23.14 kB / 445.3 MB, free: 42.71 MB / 410.7 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.0004023/0.1697, allocations: 0.7549 MB / 446 MB, free: 42.06 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.121e-05/0.1698, allocations: 114.1 kB / 446.1 MB, free: 41.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/0.1698, allocations: 1.188 kB / 446.1 MB, free: 41.93 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.171e-05/0.1698, allocations: 84.05 kB / 446.2 MB, free: 41.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.58e-05/0.1699, allocations: 5.953 kB / 446.2 MB, free: 41.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002342/0.1702, allocations: 153 kB / 446.4 MB, free: 41.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.798e-05/0.1702, allocations: 54.36 kB / 446.4 MB, free: 41.61 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.801e-06/0.1702, allocations: 0 / 446.4 MB, free: 41.61 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.395e-05/0.1702, allocations: 10.75 kB / 446.4 MB, free: 41.6 MB / 410.7 MB Notification: Performance of SimCode: time 1.382e-06/0.1702, allocations: 0 / 446.4 MB, free: 41.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01479/0.185, allocations: 2.084 MB / 448.5 MB, free: 40.64 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.57/6.755, allocations: 3.312 kB / 448.5 MB, free: 40.64 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.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: 8.673114129342139]