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.001399/0.001399, allocations: 75.2 kB / 19.93 MB, free: 1.77 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.001801/0.001801, allocations: 172.1 kB / 23.22 MB, free: 4.887 MB / 14.72 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 1.572/1.572, allocations: 158.6 MB / 185 MB, free: 6.406 MB / 174.1 MB " [Timeout remaining time 178] 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.214/0.214, allocations: 32.38 MB / 269.6 MB, free: 2.727 MB / 254.1 MB " [Timeout remaining time 179] 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: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 407.3 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.492e-05/4.651e-05, allocations: 2.281 kB / 407.3 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001547/0.001593, allocations: 498.9 kB / 407.8 MB, free: 380 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006199/0.002213, allocations: 221.1 kB / 408 MB, free: 160 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.722e-05/0.002241, allocations: 0 / 408 MB, free: 160 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.013e-05/0.002261, allocations: 0 / 408 MB, free: 160 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.36e-06/0.002266, allocations: 0 / 408 MB, free: 160 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000307/0.002573, allocations: 51.7 kB / 408.1 MB, free: 108 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.731e-05/0.00263, allocations: 4 kB / 408.1 MB, free: 104 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.606e-05/0.002676, allocations: 0 / 408.1 MB, free: 104 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.023e-05/0.002707, allocations: 4 kB / 408.1 MB, free: 100 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.016e-05/0.002737, allocations: 0 / 408.1 MB, free: 100 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.694e-06/0.002744, allocations: 0 / 408.1 MB, free: 100 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001286/0.002873, allocations: 47.94 kB / 408.1 MB, free: 52 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.398e-06/0.002883, allocations: 4 kB / 408.1 MB, free: 48 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.085e-05/0.002903, allocations: 7.938 kB / 408.2 MB, free: 40 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001543/0.003058, allocations: 47.94 kB / 408.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.00306, allocations: 0 / 408.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.91e-07/0.003061, allocations: 0 / 408.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.886e-06/0.00307, allocations: 3.938 kB / 408.2 MB, free: 15.98 MB / 350.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.000375/0.003445, allocations: 272 kB / 408.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.003486, allocations: 12.03 kB / 408.5 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.75e-05/0.003514, allocations: 0.9375 kB / 408.5 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.026e-05/0.003604, allocations: 101.8 kB / 408.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.369e-05/0.003618, allocations: 8.312 kB / 408.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.241e-05/0.00363, allocations: 384 / 408.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001318/0.003762, allocations: 67.88 kB / 408.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.003771, allocations: 192 / 408.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.334e-06/0.003778, allocations: 384 / 408.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.003785, allocations: 4.359 kB / 408.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.318e-05/0.003848, allocations: 33.64 kB / 408.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001239/0.003972, allocations: 93.33 kB / 408.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.72e-05/0.004039, allocations: 44.31 kB / 408.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.82e-05/0.004078, allocations: 34.56 kB / 408.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.917e-06/0.004087, allocations: 4 kB / 408.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.367e-05/0.00414, allocations: 68.25 kB / 408.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.004141, allocations: 0 / 408.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002094/0.004351, allocations: 110.8 kB / 409 MB, free: 14.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.675e-05/0.004407, allocations: 81.11 kB / 409.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.231e-05/0.00446, allocations: 93.84 kB / 409.2 MB, free: 14.78 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.00448, allocations: 25.7 kB / 409.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.333e-05/0.004514, allocations: 84.14 kB / 409.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.172e-05/0.004536, allocations: 3.953 kB / 409.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.939e-05/0.004565, allocations: 9.719 kB / 409.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.004712, allocations: 322.9 kB / 409.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.537e-05/0.004738, allocations: 25.7 kB / 409.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.584e-05/0.004763, allocations: 25.7 kB / 409.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.948e-05/0.004823, allocations: 68.2 kB / 409.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.004825, allocations: 3.938 kB / 409.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.901e-05/0.004914, allocations: 89.09 kB / 409.9 MB, free: 14.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.23e-05/0.004956, allocations: 33.7 kB / 409.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.004961, allocations: 0 / 409.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.004974, allocations: 0 / 409.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.474e-06/0.004976, allocations: 8.094 kB / 409.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.107e-06/0.00498, allocations: 0 / 409.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.971e-05/0.005, allocations: 7.875 kB / 409.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.005008, allocations: 3.984 kB / 409.9 MB, free: 14 MB / 350.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 9.654e-05/0.005104, allocations: 143.5 kB / 410 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.324e-06/0.005112, allocations: 0 / 410 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.074e-05/0.005122, allocations: 3 kB / 410.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.005123, allocations: 0 / 410.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.005127, allocations: 4 kB / 410.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.00513, allocations: 0 / 410.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.59e-05/0.005215, allocations: 105.2 kB / 410.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.005216, allocations: 0 / 410.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.544e-06/0.005219, allocations: 3.938 kB / 410.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.00522, allocations: 0 / 410.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.005227, allocations: 4 kB / 410.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.005228, allocations: 0 / 410.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.005228, allocations: 0 / 410.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001305/0.005359, allocations: 120.5 kB / 410.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.857e-06/0.005363, allocations: 0 / 410.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.237e-05/0.005375, allocations: 0 / 410.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.496e-06/0.005384, allocations: 4 kB / 410.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.646e-05/0.0054, allocations: 4.031 kB / 410.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-06/0.005403, allocations: 0 / 410.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.15e-05/0.005444, allocations: 79.28 kB / 410.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.005444, allocations: 0 / 410.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002279/0.005672, allocations: 23.92 kB / 410.4 MB, free: 13.44 MB / 350.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.0005356/0.006208, allocations: 216.1 kB / 410.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001348/0.006343, allocations: 114.7 kB / 410.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.006344, allocations: 0 / 410.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.778e-05/0.006402, allocations: 85.11 kB / 410.8 MB, free: 13.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000124/0.006526, allocations: 6.656 kB / 410.8 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002018/0.006728, allocations: 106.8 kB / 410.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.57e-05/0.006774, allocations: 55.36 kB / 411 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.07e-06/0.006779, allocations: 0 / 411 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.445e-05/0.006793, allocations: 12.5 kB / 411 MB, free: 12.78 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.006794, allocations: 0 / 411 MB, free: 12.78 MB / 350.1 MB Notification: Performance of Templates: time 0.003528/0.01032, allocations: 0.6103 MB / 411.6 MB, free: 12.17 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (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 & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] 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: 5.016650639474392]