Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.INITest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ExternData.Examples.INITest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.INITest") translateModel(ExternData.Examples.INITest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.INITest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001552/0.001552, allocations: 102.2 kB / 16.27 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001795/0.001795, allocations: 193.3 kB / 17.2 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.01333/0.01333, allocations: 2.948 MB / 294 MB, free: 11.88 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 60.11 kB / 355.3 MB, free: 14.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2027/0.204, allocations: 50.34 MB / 405.7 MB, free: 32.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.INITest): time 0.002355/0.2064, allocations: 1.551 MB / 407.2 MB, free: 31.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009771/0.2074, allocations: 1.016 MB / 408.2 MB, free: 30.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.752e-05/0.2074, allocations: 4 kB / 408.2 MB, free: 30.06 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo:79:3-102:14:writable] Warning: Pure function 'ExternData.INIFile' contains a call to impure function 'ExternData.Types.ExternINIFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0002221/0.2077, allocations: 19.86 kB / 408.3 MB, free: 30.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002605/0.2079, allocations: 107.5 kB / 408.4 MB, free: 29.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.504e-05/0.208, allocations: 7.984 kB / 408.4 MB, free: 29.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.091e-05/0.208, allocations: 35.86 kB / 408.4 MB, free: 29.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.085e-05/0.2081, allocations: 8 kB / 408.4 MB, free: 29.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.044e-05/0.2082, allocations: 19.98 kB / 408.4 MB, free: 29.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001121/0.2083, allocations: 23.86 kB / 408.5 MB, free: 29.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.041e-05/0.2083, allocations: 0 / 408.5 MB, free: 29.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001498/0.2085, allocations: 115.8 kB / 408.6 MB, free: 29.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.111e-05/0.2085, allocations: 7.984 kB / 408.6 MB, free: 29.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.241e-05/0.2085, allocations: 15.88 kB / 408.6 MB, free: 29.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001698/0.2087, allocations: 117.8 kB / 408.7 MB, free: 29.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.2087, allocations: 0 / 408.7 MB, free: 29.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.2087, allocations: 0 / 408.7 MB, free: 29.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.2087, allocations: 7.938 kB / 408.7 MB, free: 29.58 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003446/0.2091, allocations: 379.4 kB / 409.1 MB, free: 29.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.804e-05/0.2091, allocations: 11.89 kB / 409.1 MB, free: 29.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.969e-05/0.2091, allocations: 12.84 kB / 409.1 MB, free: 29.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001069/0.2092, allocations: 176.3 kB / 409.3 MB, free: 28.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.957e-06/0.2093, allocations: 4.312 kB / 409.3 MB, free: 28.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.919e-06/0.2093, allocations: 4.375 kB / 409.3 MB, free: 28.92 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001009/0.2094, allocations: 49.81 kB / 409.3 MB, free: 28.87 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.2094, allocations: 0 / 409.3 MB, free: 28.87 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.344e-06/0.2094, allocations: 0 / 409.3 MB, free: 28.87 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.2094, allocations: 8 kB / 409.4 MB, free: 28.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.187e-05/0.2095, allocations: 23.92 kB / 409.4 MB, free: 28.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002354/0.2097, allocations: 268.9 kB / 409.6 MB, free: 28.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000156/0.2099, allocations: 50.56 kB / 409.7 MB, free: 28.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.318e-05/0.21, allocations: 12.86 kB / 409.7 MB, free: 28.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.11e-05/0.21, allocations: 0 / 409.7 MB, free: 28.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.141e-05/0.21, allocations: 34.56 kB / 409.7 MB, free: 28.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.382e-06/0.21, allocations: 0 / 409.7 MB, free: 28.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001923/0.2102, allocations: 69.64 kB / 409.8 MB, free: 28.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.98e-05/0.2102, allocations: 55.41 kB / 409.9 MB, free: 28.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.872e-05/0.2103, allocations: 121.8 kB / 410 MB, free: 28.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.174e-06/0.2103, allocations: 29.7 kB / 410 MB, free: 28.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.522e-05/0.2103, allocations: 92.05 kB / 410.1 MB, free: 28.01 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.453e-05/0.2104, allocations: 3.906 kB / 410.1 MB, free: 28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.461e-05/0.2104, allocations: 17.72 kB / 410.1 MB, free: 27.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.375e-05/0.2104, allocations: 318.8 kB / 410.4 MB, free: 27.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.736e-05/0.2105, allocations: 8 kB / 410.4 MB, free: 27.65 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.818e-05/0.2105, allocations: 12.17 kB / 410.4 MB, free: 27.64 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.191e-05/0.2106, allocations: 32.92 kB / 410.5 MB, free: 27.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.2106, allocations: 0 / 410.5 MB, free: 27.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 9.717e-05/0.2107, allocations: 61.53 kB / 410.5 MB, free: 27.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.2107, allocations: 8 kB / 410.5 MB, free: 27.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.2107, allocations: 0 / 410.5 MB, free: 27.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.2107, allocations: 0 / 410.5 MB, free: 27.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.944e-05/0.2108, allocations: 7.984 kB / 410.6 MB, free: 27.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.2108, allocations: 0 / 410.6 MB, free: 27.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.825e-05/0.2108, allocations: 4 kB / 410.6 MB, free: 27.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.577e-06/0.2108, allocations: 4 kB / 410.6 MB, free: 27.52 MB / 302.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 4.395e-05/0.2109, allocations: 117.8 kB / 410.7 MB, free: 27.39 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.56e-05/0.2109, allocations: 0 / 410.7 MB, free: 27.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.071e-05/0.2109, allocations: 11.89 kB / 410.7 MB, free: 27.37 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.2109, allocations: 0 / 410.7 MB, free: 27.37 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.2109, allocations: 0 / 410.7 MB, free: 27.37 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-06/0.2109, allocations: 384 / 410.7 MB, free: 27.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001056/0.2111, allocations: 169.6 kB / 410.9 MB, free: 27.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2111, allocations: 0 / 410.9 MB, free: 27.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.546e-05/0.2111, allocations: 8 kB / 410.9 MB, free: 27.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.2111, allocations: 7.938 kB / 410.9 MB, free: 27.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.52e-06/0.2111, allocations: 4 kB / 410.9 MB, free: 27.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.2111, allocations: 0 / 410.9 MB, free: 27.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2111, allocations: 3.938 kB / 410.9 MB, free: 27.13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001112/0.2113, allocations: 159.4 kB / 411 MB, free: 26.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.07e-05/0.2113, allocations: 77.11 kB / 411.1 MB, free: 26.87 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.389e-05/0.2113, allocations: 7.922 kB / 411.1 MB, free: 26.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.553e-05/0.2114, allocations: 8 kB / 411.1 MB, free: 26.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.641e-05/0.2114, allocations: 0 / 411.1 MB, free: 26.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-06/0.2114, allocations: 0 / 411.1 MB, free: 26.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.547e-05/0.2114, allocations: 95.27 kB / 411.2 MB, free: 26.76 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2114, allocations: 4 kB / 411.2 MB, free: 26.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002528/0.2117, allocations: 35.98 kB / 411.3 MB, free: 26.72 MB / 302.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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.0005571/0.2123, allocations: 328.6 kB / 411.6 MB, free: 26.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001189/0.2124, allocations: 31.86 kB / 411.6 MB, free: 26.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.2124, allocations: 0 / 411.6 MB, free: 26.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.667e-05/0.2124, allocations: 15.98 kB / 411.6 MB, free: 26.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.2127, allocations: 7.938 kB / 411.6 MB, free: 26.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002391/0.213, allocations: 171.6 kB / 411.8 MB, free: 26.22 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.748e-05/0.2131, allocations: 0.6807 MB / 412.5 MB, free: 25.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.366e-05/0.2131, allocations: 11.44 kB / 412.5 MB, free: 25.5 MB / 302.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2131, allocations: 3.938 kB / 412.5 MB, free: 25.5 MB / 302.1 MB Notification: Performance of Templates: time 0.002504/0.2156, allocations: 1.605 MB / 414.1 MB, free: 23.9 MB / 302.1 MB make -j1 -f ExternData_ExternData.Examples.INITest.makefile (rm -f ExternData_ExternData.Examples.INITest.pipe ; mkfifo ExternData_ExternData.Examples.INITest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.INITest.pipe >> ../files/ExternData_ExternData.Examples.INITest.sim & ./ExternData_ExternData.Examples.INITest -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternData_ExternData.Examples.INITest.pipe 2>&1)