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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 183.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03652/0.03652, allocations: 8.793 MB / 25.52 MB, free: 3.754 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 222.9 MB / 251.3 MB, free: 7.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009247/0.0009247, allocations: 96.88 kB / 303.6 MB, free: 14.51 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 67.89 kB / 366 MB, free: 184 kB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2004/0.2016, allocations: 51.55 MB / 417.5 MB, free: 20.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.00376/0.2054, allocations: 3.848 MB / 421.4 MB, free: 17.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001004/0.2065, allocations: 0.9074 MB / 422.3 MB, free: 16.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001745/0.2067, allocations: 12 kB / 422.3 MB, free: 16.13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001669/0.2068, allocations: 63.47 kB / 422.4 MB, free: 16.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002726/0.2071, allocations: 135 kB / 422.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002347/0.2074, allocations: 139.8 kB / 422.6 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003562/0.2077, allocations: 0.619 MB / 423.2 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002766/0.208, allocations: 233.9 kB / 423.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001739/0.2082, allocations: 227.1 kB / 423.7 MB, free: 14.72 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001958/0.2084, allocations: 258.8 kB / 423.9 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.346e-05/0.2084, allocations: 36 kB / 424 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.385e-05/0.2085, allocations: 40 kB / 424 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.988e-05/0.2086, allocations: 107.5 kB / 424.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001566/0.2087, allocations: 282.6 kB / 424.4 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003661/0.2091, allocations: 0.6969 MB / 425.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.2091, allocations: 0 / 425.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.2091, allocations: 0 / 425.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.2092, allocations: 0 / 425.1 MB, free: 13.31 MB / 298.7 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.001107/0.2103, allocations: 0.8305 MB / 425.9 MB, free: 12.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.2103, allocations: 8.031 kB / 425.9 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.949e-05/0.2104, allocations: 68.22 kB / 426 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003226/0.2107, allocations: 363.6 kB / 426.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.913e-05/0.2108, allocations: 41.67 kB / 426.4 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.609e-05/0.2108, allocations: 52.38 kB / 426.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006617/0.2115, allocations: 0.5189 MB / 427 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.2115, allocations: 0 / 427 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.556e-05/0.2115, allocations: 20 kB / 427 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.2116, allocations: 12 kB / 427 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006264/0.2122, allocations: 391.8 kB / 427.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001956/0.2142, allocations: 1.906 MB / 429.3 MB, free: 8.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005569/0.2147, allocations: 313.8 kB / 429.6 MB, free: 8.598 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004286/0.2152, allocations: 237.2 kB / 429.8 MB, free: 8.363 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.953e-05/0.2152, allocations: 8.266 kB / 429.8 MB, free: 8.355 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.784e-05/0.2152, allocations: 34.84 kB / 429.9 MB, free: 8.312 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 1.723e-06/0.2152, allocations: 3.938 kB / 429.9 MB, free: 8.309 MB / 298.7 MB Notification: Performance of matching and sorting (n=47): time 0.003988/0.2192, allocations: 1.722 MB / 431.6 MB, free: 6.512 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.645e-05/0.2193, allocations: 59.84 kB / 431.7 MB, free: 6.441 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002925/0.2196, allocations: 295.3 kB / 431.9 MB, free: 6.152 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.01e-05/0.2196, allocations: 41.64 kB / 432 MB, free: 6.105 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.2197, allocations: 264.2 kB / 432.2 MB, free: 5.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.84e-05/0.2199, allocations: 161.6 kB / 432.4 MB, free: 5.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/0.22, allocations: 86.25 kB / 432.5 MB, free: 5.586 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.399e-05/0.2201, allocations: 346.8 kB / 432.8 MB, free: 5.238 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003121/0.2204, allocations: 153 kB / 433 MB, free: 5.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003022/0.2207, allocations: 238.6 kB / 433.2 MB, free: 4.828 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005758/0.2213, allocations: 409.1 kB / 433.6 MB, free: 4.398 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2213, allocations: 0 / 433.6 MB, free: 4.398 MB / 298.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008622/0.2222, allocations: 0.5636 MB / 434.2 MB, free: 3.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.913e-05/0.2222, allocations: 6.188 kB / 434.2 MB, free: 3.816 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.924e-06/0.2222, allocations: 4 kB / 434.2 MB, free: 3.812 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002502/0.2225, allocations: 93.61 kB / 434.3 MB, free: 3.715 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003926/0.2229, allocations: 107.8 kB / 434.4 MB, free: 3.609 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001853/0.2248, allocations: 3.237 MB / 437.6 MB, free: 100 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002474/0.225, allocations: 24.05 kB / 437.6 MB, free: 76 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.601e-05/0.2251, allocations: 19.98 kB / 437.7 MB, free: 56 kB / 298.7 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.0002285/0.2253, allocations: 185.7 kB / 437.8 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.074e-05/0.2254, allocations: 39.47 kB / 437.9 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001003/0.2255, allocations: 55.67 kB / 437.9 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.2255, allocations: 4 kB / 437.9 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.2255, allocations: 4 kB / 437.9 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.2255, allocations: 7.984 kB / 437.9 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001686/0.2272, allocations: 1.128 MB / 439.1 MB, free: 14.56 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.2272, allocations: 4.031 kB / 439.1 MB, free: 14.56 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003633/0.2276, allocations: 79.94 kB / 439.2 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002376/0.2278, allocations: 101.8 kB / 439.3 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.616e-05/0.2279, allocations: 11.92 kB / 439.3 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002449/0.2303, allocations: 3.231 MB / 442.5 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.2303, allocations: 3.938 kB / 442.5 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0081/0.2385, allocations: 6.919 MB / 449.4 MB, free: 3.512 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001528/0.2386, allocations: 144.6 kB / 449.6 MB, free: 3.352 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.031e-05/0.2387, allocations: 12.12 kB / 449.6 MB, free: 3.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000275/0.239, allocations: 27.98 kB / 449.6 MB, free: 3.312 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.2391, allocations: 31.94 kB / 449.6 MB, free: 3.281 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.2391, allocations: 16 kB / 449.6 MB, free: 3.266 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002035/0.2393, allocations: 206 kB / 449.8 MB, free: 3.062 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2393, allocations: 0 / 449.8 MB, free: 3.062 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007547/0.2401, allocations: 167.9 kB / 450 MB, free: 2.898 MB / 314.7 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.000117/0.2402, allocations: 119.2 kB / 450.1 MB, free: 2.773 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001137/0.2414, allocations: 0.6626 MB / 450.8 MB, free: 2.082 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.2414, allocations: 0 / 450.8 MB, free: 2.082 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006849/0.2421, allocations: 485.6 kB / 451.3 MB, free: 1.582 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004403/0.2425, allocations: 48.83 kB / 451.3 MB, free: 1.535 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002314/0.2448, allocations: 1.849 MB / 453.2 MB, free: 15.61 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003762/0.2452, allocations: 0.8512 MB / 454 MB, free: 14.74 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002298/0.2455, allocations: 47.25 kB / 454.1 MB, free: 14.7 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.2456, allocations: 39.36 kB / 454.1 MB, free: 14.66 MB / 330.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2456, allocations: 0 / 454.1 MB, free: 14.66 MB / 330.7 MB Notification: Performance of Templates: time 0.01001/0.2556, allocations: 5.949 MB / 460 MB, free: 8.75 MB / 330.7 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)