Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Magnetic.TestTransformer.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.Magnetic.TestTransformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Magnetic.TestTransformer") translateModel(HanserModelica.Magnetic.TestTransformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Magnetic.TestTransformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001847/0.001847, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.992/1.992, allocations: 222.9 MB / 239.5 MB, free: 4.777 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002452/0.002452, allocations: 188.5 kB / 289.8 MB, free: 2.52 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06604/0.06604, allocations: 8.798 MB / 348.7 MB, free: 4.914 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002995/0.002995, allocations: 76.06 kB / 411.1 MB, free: 42.37 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.152/0.1551, allocations: 51.57 MB / 462.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.009627/0.1648, allocations: 3.837 MB / 466.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003448/0.1683, allocations: 0.9153 MB / 467.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007948/0.1691, allocations: 15.94 kB / 467.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005371/0.1697, allocations: 59.53 kB / 467.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001225/0.171, allocations: 130.9 kB / 467.6 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008109/0.1718, allocations: 143.9 kB / 467.7 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001436/0.1733, allocations: 0.6034 MB / 468.3 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007471/0.1741, allocations: 231.8 kB / 468.5 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006513/0.1747, allocations: 231.1 kB / 468.8 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007036/0.1755, allocations: 258.8 kB / 469 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002047/0.1757, allocations: 36 kB / 469.1 MB, free: 8.453 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002513/0.176, allocations: 40 kB / 469.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002037/0.1762, allocations: 103.6 kB / 469.2 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005847/0.1768, allocations: 282.5 kB / 469.5 MB, free: 8.035 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009077/0.1777, allocations: 0.5692 MB / 470 MB, free: 7.465 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.398e-06/0.1778, allocations: 0 / 470 MB, free: 7.465 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.776e-06/0.1778, allocations: 0 / 470 MB, free: 7.465 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.588e-05/0.1778, allocations: 4 kB / 470 MB, free: 7.461 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.003034/0.1809, allocations: 0.8227 MB / 470.9 MB, free: 6.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.884e-05/0.181, allocations: 12.03 kB / 470.9 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002338/0.1812, allocations: 56.28 kB / 470.9 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009375/0.1822, allocations: 367.5 kB / 471.3 MB, free: 6.129 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.367e-05/0.1823, allocations: 37.69 kB / 471.3 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001552/0.1825, allocations: 48.38 kB / 471.4 MB, free: 6.043 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002092/0.1846, allocations: 0.5305 MB / 471.9 MB, free: 5.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.574e-05/0.1846, allocations: 0 / 471.9 MB, free: 5.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.208e-05/0.1847, allocations: 24 kB / 471.9 MB, free: 5.477 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.649e-05/0.1848, allocations: 12 kB / 471.9 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001909/0.1867, allocations: 387.8 kB / 472.3 MB, free: 5.086 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005275/0.192, allocations: 1.906 MB / 474.2 MB, free: 3.066 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001483/0.1935, allocations: 319.3 kB / 474.5 MB, free: 2.746 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001067/0.1946, allocations: 235.2 kB / 474.8 MB, free: 2.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.121e-05/0.1947, allocations: 16.27 kB / 474.8 MB, free: 2.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.393e-05/0.1948, allocations: 30.84 kB / 474.8 MB, free: 2.461 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 6.011e-06/0.1948, allocations: 0 / 474.8 MB, free: 2.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.009772/0.2046, allocations: 1.728 MB / 476.5 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.583e-05/0.2047, allocations: 55.84 kB / 476.6 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007152/0.2054, allocations: 295.3 kB / 476.9 MB, free: 304 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.451e-05/0.2055, allocations: 33.7 kB / 476.9 MB, free: 264 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003416/0.2059, allocations: 268.4 kB / 477.2 MB, free: 15.98 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002575/0.2062, allocations: 165.6 kB / 477.3 MB, free: 15.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002927/0.2065, allocations: 90.16 kB / 477.4 MB, free: 15.72 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002345/0.2068, allocations: 346.8 kB / 477.8 MB, free: 15.38 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007487/0.2075, allocations: 153 kB / 477.9 MB, free: 15.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008683/0.2084, allocations: 234.6 kB / 478.2 MB, free: 14.97 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00163/0.2101, allocations: 413.1 kB / 478.6 MB, free: 14.54 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.2101, allocations: 0 / 478.6 MB, free: 14.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002465/0.2126, allocations: 0.5558 MB / 479.1 MB, free: 13.96 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.635e-05/0.2127, allocations: 4 kB / 479.1 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.733e-05/0.2127, allocations: 4 kB / 479.1 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006047/0.2133, allocations: 101.8 kB / 479.2 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009687/0.2143, allocations: 107.8 kB / 479.3 MB, free: 13.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005247/0.2196, allocations: 3.237 MB / 482.6 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006883/0.2203, allocations: 15.98 kB / 482.6 MB, free: 10.22 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.988e-05/0.2204, allocations: 16 kB / 482.6 MB, free: 10.2 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005297/0.221, allocations: 193.7 kB / 482.8 MB, free: 10 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001952/0.2212, allocations: 39.47 kB / 482.8 MB, free: 9.965 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001673/0.2214, allocations: 47.73 kB / 482.9 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.257e-06/0.2214, allocations: 4 kB / 482.9 MB, free: 9.914 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.682e-05/0.2214, allocations: 4 kB / 482.9 MB, free: 9.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/0.2214, allocations: 3.984 kB / 482.9 MB, free: 9.906 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003725/0.2252, allocations: 1.132 MB / 484 MB, free: 8.711 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.734e-06/0.2252, allocations: 0 / 484 MB, free: 8.711 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009078/0.2261, allocations: 83.88 kB / 484.1 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005653/0.2267, allocations: 97.89 kB / 484.2 MB, free: 8.527 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-05/0.2268, allocations: 15.98 kB / 484.2 MB, free: 8.512 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005184/0.232, allocations: 3.235 MB / 487.4 MB, free: 5.004 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.736e-06/0.2321, allocations: 7.875 kB / 487.4 MB, free: 4.996 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002938/0.235, allocations: 0.7724 MB / 488.2 MB, free: 4.199 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003697/0.2354, allocations: 140.6 kB / 488.4 MB, free: 4.043 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001378/0.2356, allocations: 15.94 kB / 488.4 MB, free: 4.027 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006617/0.2363, allocations: 32.03 kB / 488.4 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000184/0.2365, allocations: 31.95 kB / 488.4 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.639e-05/0.2366, allocations: 16 kB / 488.4 MB, free: 3.949 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004482/0.237, allocations: 205.9 kB / 488.6 MB, free: 3.75 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.2371, allocations: 0 / 488.6 MB, free: 3.75 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00128/0.2384, allocations: 120 kB / 488.8 MB, free: 3.633 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (transformer.converter1.i,transformer.eddyCurrent.Phi) * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002348/0.2386, allocations: 111.7 kB / 488.9 MB, free: 3.512 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002443/0.2411, allocations: 0.6629 MB / 489.5 MB, free: 2.824 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.2411, allocations: 4.062 kB / 489.5 MB, free: 2.82 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001519/0.2426, allocations: 481.1 kB / 490 MB, free: 2.324 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009951/0.2437, allocations: 52.7 kB / 490.1 MB, free: 2.273 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004123/0.2478, allocations: 1.266 MB / 491.3 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007081/0.2486, allocations: 0.8395 MB / 492.2 MB, free: 108 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002678/0.2489, allocations: 35.44 kB / 492.2 MB, free: 72 kB / 318.1 MB Notification: Performance of SimCode: time 9.32e-07/0.2489, allocations: 0 / 492.2 MB, free: 72 kB / 318.1 MB Notification: Performance of Templates: time 0.02315/0.272, allocations: 9.813 MB / 0.4903 GB, free: 6.266 MB / 334.1 MB make -j1 -f HanserModelica_HanserModelica.Magnetic.TestTransformer.makefile (rm -f HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe ; mkfifo HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe >> ../files/HanserModelica_HanserModelica.Magnetic.TestTransformer.sim & ./HanserModelica_HanserModelica.Magnetic.TestTransformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe 2>&1)