Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002718/0.002722, allocations: 364.4 kB / 15.96 MB, free: 6.199 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.94/3.94, allocations: 388.9 MB / 405.6 MB, free: 10.25 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003499/0.0035, allocations: 235.8 kB / 451 MB, free: 145.1 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5763/0.5763, allocations: 80.03 MB / 0.5627 GB, free: 19.84 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004705/0.0004707, allocations: 12 kB / 0.6265 GB, free: 96.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1112, allocations: 54.87 MB / 0.6801 GB, free: 41.67 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.000692/0.112, allocations: 220.4 kB / 0.6803 GB, free: 41.45 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006103/0.1126, allocations: 187.4 kB / 0.6805 GB, free: 41.27 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.436e-05/0.1127, allocations: 0 / 0.6805 GB, free: 41.27 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.187e-05/0.1127, allocations: 0 / 0.6805 GB, free: 41.27 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.544e-06/0.1127, allocations: 0 / 0.6805 GB, free: 41.27 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003001/0.113, allocations: 43.89 kB / 0.6805 GB, free: 41.23 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 3.959e-05/0.1131, allocations: 4 kB / 0.6805 GB, free: 41.23 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.181e-05/0.1132, allocations: 3.984 kB / 0.6805 GB, free: 41.22 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.78e-05/0.1132, allocations: 0 / 0.6805 GB, free: 41.22 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.737e-05/0.1132, allocations: 3.984 kB / 0.6805 GB, free: 41.22 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.442e-06/0.1132, allocations: 4 kB / 0.6805 GB, free: 41.21 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001306/0.1134, allocations: 51.89 kB / 0.6806 GB, free: 41.16 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.502e-06/0.1134, allocations: 0 / 0.6806 GB, free: 41.16 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.342e-05/0.1134, allocations: 25.7 kB / 0.6806 GB, free: 41.13 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 9.195e-05/0.1135, allocations: 27.95 kB / 0.6806 GB, free: 41.11 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.1136, allocations: 0 / 0.6806 GB, free: 41.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1136, allocations: 4 kB / 0.6806 GB, free: 41.1 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.1136, allocations: 0 / 0.6806 GB, free: 41.1 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.0002426/0.1138, allocations: 356.8 kB / 0.681 GB, free: 40.7 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.1139, allocations: 8.562 kB / 0.681 GB, free: 40.69 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.741e-05/0.1139, allocations: 7.953 kB / 0.681 GB, free: 40.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.585e-05/0.114, allocations: 159.1 kB / 0.6811 GB, free: 40.49 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.114, allocations: 4 kB / 0.6811 GB, free: 40.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.696e-06/0.1141, allocations: 0 / 0.6811 GB, free: 40.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.48e-05/0.1141, allocations: 29.69 kB / 0.6812 GB, free: 40.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.689e-06/0.1142, allocations: 4 kB / 0.6812 GB, free: 40.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.1142, allocations: 4 kB / 0.6812 GB, free: 40.44 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.1142, allocations: 0 / 0.6812 GB, free: 40.44 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.062e-05/0.1142, allocations: 7.891 kB / 0.6812 GB, free: 40.43 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001068/0.1143, allocations: 145.7 kB / 0.6813 GB, free: 40.24 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.948e-05/0.1144, allocations: 18.61 kB / 0.6813 GB, free: 40.21 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.667e-05/0.1144, allocations: 4.859 kB / 0.6814 GB, free: 40.21 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.446e-06/0.1144, allocations: 0 / 0.6814 GB, free: 40.21 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.869e-05/0.1145, allocations: 68.31 kB / 0.6814 GB, free: 40.12 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.443e-06/0.1145, allocations: 0 / 0.6814 GB, free: 40.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001706/0.1147, allocations: 67.44 kB / 0.6815 GB, free: 40.05 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.793e-05/0.1147, allocations: 77.11 kB / 0.6816 GB, free: 39.95 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.573e-05/0.1148, allocations: 89.86 kB / 0.6816 GB, free: 39.86 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.518e-06/0.1148, allocations: 25.7 kB / 0.6817 GB, free: 39.82 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.753e-05/0.1148, allocations: 80.14 kB / 0.6817 GB, free: 39.74 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.379e-05/0.1148, allocations: 0 / 0.6817 GB, free: 39.74 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.474e-06/0.1148, allocations: 0 / 0.6817 GB, free: 39.74 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.588e-05/0.1149, allocations: 322.8 kB / 0.6821 GB, free: 39.42 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.292e-05/0.1149, allocations: 4 kB / 0.6821 GB, free: 39.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.985e-06/0.115, allocations: 4.031 kB / 0.6821 GB, free: 39.41 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.827e-05/0.115, allocations: 25.7 kB / 0.6821 GB, free: 39.38 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.115, allocations: 0 / 0.6821 GB, free: 39.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.571e-05/0.1151, allocations: 63.34 kB / 0.6821 GB, free: 39.3 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.914e-05/0.1151, allocations: 37.69 kB / 0.6822 GB, free: 39.26 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.1152, allocations: 0 / 0.6822 GB, free: 39.26 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.1152, allocations: 0 / 0.6822 GB, free: 39.26 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.523e-06/0.1152, allocations: 3.938 kB / 0.6822 GB, free: 39.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.613e-06/0.1152, allocations: 0 / 0.6822 GB, free: 39.26 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.299e-05/0.1152, allocations: 4.094 kB / 0.6822 GB, free: 39.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.457e-06/0.1153, allocations: 0 / 0.6822 GB, free: 39.25 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.894e-05/0.1154, allocations: 143.5 kB / 0.6823 GB, free: 39.1 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.488e-06/0.1154, allocations: 0 / 0.6823 GB, free: 39.1 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.361e-05/0.1154, allocations: 7.078 kB / 0.6823 GB, free: 39.09 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.1154, allocations: 0 / 0.6823 GB, free: 39.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.1154, allocations: 0 / 0.6823 GB, free: 39.09 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.268e-05/0.1154, allocations: 93.03 kB / 0.6824 GB, free: 38.98 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.578e-05/0.1155, allocations: 0 / 0.6824 GB, free: 38.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.207e-05/0.1155, allocations: 4 kB / 0.6824 GB, free: 38.98 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.967e-05/0.1155, allocations: 3.953 kB / 0.6824 GB, free: 38.98 MB / 346.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001034/0.1156, allocations: 202 kB / 0.6826 GB, free: 38.75 MB / 346.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001393/0.1158, allocations: 228.5 kB / 0.6828 GB, free: 38.51 MB / 346.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.443e-05/0.1158, allocations: 4 kB / 0.6828 GB, free: 38.5 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.717e-05/0.1158, allocations: 79.34 kB / 0.6829 GB, free: 38.43 MB / 346.7 MB Notification: Performance of Backend: time 7.71e-07/0.1159, allocations: 0 / 0.6829 GB, free: 38.43 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007411/0.1166, allocations: 238.1 kB / 0.6831 GB, free: 38.21 MB / 346.7 MB Notification: Performance of SimCode: time 0.0002734/0.1169, allocations: 0.5853 MB / 0.6837 GB, free: 37.57 MB / 346.7 MB Notification: Performance of Templates: time 0.003716/0.1206, allocations: 0.5781 MB / 0.6843 GB, free: 36.99 MB / 346.7 MB