Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0008719/0.0008719, allocations: 80.53 kB / 19.92 MB, free: 4.637 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.0008973/0.0008973, allocations: 169.9 kB / 23.21 MB, free: 1.355 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8454/0.8454, allocations: 158.6 MB / 185 MB, free: 3.051 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.13/0.13, allocations: 32.37 MB / 269.6 MB, free: 14.96 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 406.8 MB, free: 13.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.068e-05/2.207e-05, allocations: 9.938 kB / 406.8 MB, free: 13.55 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001111/0.001133, allocations: 495 kB / 407.3 MB, free: 13.07 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.000406/0.001539, allocations: 217.2 kB / 407.5 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.73e-05/0.001556, allocations: 0 / 407.5 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.355e-05/0.00157, allocations: 0 / 407.5 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.131e-06/0.001576, allocations: 0 / 407.5 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.00183, allocations: 47.7 kB / 407.6 MB, free: 12.82 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.389e-05/0.001883, allocations: 4 kB / 407.6 MB, free: 12.81 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.768e-05/0.001921, allocations: 0 / 407.6 MB, free: 12.81 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.51e-05/0.001946, allocations: 0 / 407.6 MB, free: 12.81 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.345e-05/0.00197, allocations: 4 kB / 407.6 MB, free: 12.81 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.322e-06/0.001976, allocations: 0 / 407.6 MB, free: 12.81 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001079/0.002084, allocations: 55.88 kB / 407.6 MB, free: 12.75 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.474e-06/0.002091, allocations: 0 / 407.6 MB, free: 12.75 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.842e-05/0.00211, allocations: 0 / 407.6 MB, free: 12.75 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001023/0.002212, allocations: 55.86 kB / 407.7 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.002216, allocations: 7.938 kB / 407.7 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.002217, allocations: 0 / 407.7 MB, free: 12.69 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.00222, allocations: 0 / 407.7 MB, free: 12.69 MB / 346.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.0002389/0.002459, allocations: 276 kB / 408 MB, free: 12.38 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.002496, allocations: 8.031 kB / 408 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.455e-05/0.002521, allocations: 34.73 kB / 408 MB, free: 12.33 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.471e-05/0.002545, allocations: 4.938 kB / 408 MB, free: 12.33 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.004e-05/0.002595, allocations: 109.8 kB / 408.1 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.907e-06/0.002604, allocations: 4.312 kB / 408.1 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.432e-06/0.002611, allocations: 384 / 408.1 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.815e-05/0.002689, allocations: 59.97 kB / 408.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.152e-06/0.002695, allocations: 192 / 408.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.833e-06/0.002702, allocations: 384 / 408.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.002707, allocations: 4.125 kB / 408.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.281e-05/0.00273, allocations: 29.7 kB / 408.2 MB, free: 12.08 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.789e-05/0.002818, allocations: 116.8 kB / 408.3 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.272e-05/0.00286, allocations: 48.25 kB / 408.4 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.886e-05/0.002879, allocations: 38.56 kB / 408.4 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.791e-06/0.002885, allocations: 0 / 408.4 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.212e-05/0.002917, allocations: 60.33 kB / 408.5 MB, free: 11.74 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 5.72e-07/0.002918, allocations: 0 / 408.5 MB, free: 11.74 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001606/0.003078, allocations: 114.8 kB / 408.6 MB, free: 11.61 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.665e-05/0.003115, allocations: 88.98 kB / 408.7 MB, free: 11.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.787e-05/0.003143, allocations: 89.86 kB / 408.8 MB, free: 11.4 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.977e-06/0.003152, allocations: 25.7 kB / 408.8 MB, free: 11.37 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.409e-05/0.003176, allocations: 84.14 kB / 408.9 MB, free: 11.29 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.655e-05/0.003192, allocations: 3.953 kB / 408.9 MB, free: 11.28 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.208e-05/0.003214, allocations: 9.844 kB / 408.9 MB, free: 11.27 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.998e-05/0.003294, allocations: 318.8 kB / 409.2 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.871e-05/0.003313, allocations: 33.62 kB / 409.2 MB, free: 10.91 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.09e-05/0.003324, allocations: 25.7 kB / 409.2 MB, free: 10.88 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.856e-05/0.003363, allocations: 64.27 kB / 409.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.003364, allocations: 0 / 409.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.687e-05/0.003421, allocations: 93.03 kB / 409.4 MB, free: 10.69 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.038e-05/0.003452, allocations: 32.36 kB / 409.4 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.003458, allocations: 4 kB / 409.4 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.00347, allocations: 96 / 409.4 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.003471, allocations: 4 kB / 409.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.003477, allocations: 3.938 kB / 409.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.339e-05/0.00349, allocations: 0 / 409.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.003496, allocations: 0 / 409.4 MB, free: 10.64 MB / 346.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 6.213e-05/0.003558, allocations: 139.5 kB / 409.6 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.008e-06/0.003562, allocations: 0 / 409.6 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.116e-05/0.003573, allocations: 6.984 kB / 409.6 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.003575, allocations: 4 kB / 409.6 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.00358, allocations: 3.938 kB / 409.6 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.003582, allocations: 4 kB / 409.6 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.659e-05/0.003638, allocations: 116.8 kB / 409.7 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.003639, allocations: 0 / 409.7 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-07/0.003639, allocations: 0 / 409.7 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.00364, allocations: 3.938 kB / 409.7 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.003647, allocations: 4 kB / 409.7 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.71e-07/0.003647, allocations: 0 / 409.7 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.003649, allocations: 3.938 kB / 409.7 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.253e-05/0.003722, allocations: 120.5 kB / 409.8 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.957e-06/0.003726, allocations: 0 / 409.8 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.051e-05/0.003736, allocations: 3.984 kB / 409.8 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.271e-06/0.003743, allocations: 8.031 kB / 409.9 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.138e-05/0.003754, allocations: 3.938 kB / 409.9 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-06/0.003755, allocations: 0 / 409.9 MB, free: 10.14 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.162e-05/0.003777, allocations: 75.28 kB / 409.9 MB, free: 10.06 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003777, allocations: 0 / 409.9 MB, free: 10.06 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00016/0.003937, allocations: 19.94 kB / 409.9 MB, free: 10.04 MB / 346.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.0004998/0.004437, allocations: 0.7635 MB / 410.7 MB, free: 9.262 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.891e-05/0.004526, allocations: 118.7 kB / 410.8 MB, free: 9.121 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.004527, allocations: 0 / 410.8 MB, free: 9.121 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.472e-05/0.004552, allocations: 81.11 kB / 410.9 MB, free: 9.023 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.023e-05/0.004642, allocations: 12 kB / 410.9 MB, free: 9.012 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002309/0.004873, allocations: 144.3 kB / 411.1 MB, free: 8.824 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.126e-05/0.004904, allocations: 55.36 kB / 411.1 MB, free: 8.75 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.328e-06/0.004908, allocations: 0 / 411.1 MB, free: 8.75 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.234e-05/0.004921, allocations: 8.5 kB / 411.1 MB, free: 8.742 MB / 346.7 MB Notification: Performance of SimCode: time 4.2e-07/0.004921, allocations: 0 / 411.1 MB, free: 8.742 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01432/0.01924, allocations: 2.08 MB / 413.2 MB, free: 6.652 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.277/6.296, allocations: 0 / 413.2 MB, free: 6.652 MB / 346.7 MB " [Timeout remaining time 654] (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.11411302909255]