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.001024/0.001024, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.271/1.271, allocations: 222.9 MB / 238.8 MB, free: 4.75 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.001184/0.001184, allocations: 176.5 kB / 289.1 MB, free: 2.504 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03183/0.03183, allocations: 8.796 MB / 348.1 MB, free: 4.891 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001431, allocations: 71.11 kB / 410.4 MB, free: 42.54 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0862/0.08765, allocations: 51.56 MB / 462 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.004522/0.09221, allocations: 3.841 MB / 465.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001155/0.09339, allocations: 0.9114 MB / 466.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000185/0.09359, allocations: 8 kB / 466.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001869/0.09378, allocations: 67.47 kB / 466.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002885/0.09408, allocations: 131 kB / 466.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000275/0.09437, allocations: 147.8 kB / 467 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004724/0.09485, allocations: 0.5995 MB / 467.6 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003176/0.09518, allocations: 243.7 kB / 467.9 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002133/0.0954, allocations: 223.1 kB / 468.1 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002364/0.09565, allocations: 258.8 kB / 468.4 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.326e-05/0.09572, allocations: 40 kB / 468.4 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.388e-05/0.0958, allocations: 40 kB / 468.4 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.94e-05/0.09588, allocations: 107.5 kB / 468.5 MB, free: 8.375 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002065/0.09609, allocations: 266.7 kB / 468.8 MB, free: 8.113 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004838/0.09658, allocations: 0.701 MB / 469.5 MB, free: 7.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.0966, allocations: 4 kB / 469.5 MB, free: 7.406 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.0966, allocations: 0 / 469.5 MB, free: 7.406 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.09662, allocations: 0 / 469.5 MB, free: 7.406 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.001209/0.09783, allocations: 0.8266 MB / 470.3 MB, free: 6.531 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.09787, allocations: 12.03 kB / 470.3 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.539e-05/0.09797, allocations: 60.27 kB / 470.4 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003742/0.09835, allocations: 367.5 kB / 470.8 MB, free: 6.066 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.137e-05/0.09839, allocations: 41.69 kB / 470.8 MB, free: 6.023 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.905e-05/0.09847, allocations: 48.38 kB / 470.8 MB, free: 5.977 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008132/0.09929, allocations: 0.515 MB / 471.4 MB, free: 5.449 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.09931, allocations: 7.984 kB / 471.4 MB, free: 5.441 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.15e-05/0.09936, allocations: 24 kB / 471.4 MB, free: 5.418 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.09938, allocations: 12 kB / 471.4 MB, free: 5.406 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007357/0.1001, allocations: 391.7 kB / 471.8 MB, free: 5.023 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00239/0.1025, allocations: 1.902 MB / 473.7 MB, free: 3.008 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006631/0.1032, allocations: 319.3 kB / 474 MB, free: 2.688 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004744/0.1037, allocations: 235.8 kB / 474.2 MB, free: 2.457 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.748e-05/0.1037, allocations: 4.281 kB / 474.2 MB, free: 2.453 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.1037, allocations: 46.78 kB / 474.3 MB, free: 2.398 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.703e-06/0.1038, allocations: 0 / 474.3 MB, free: 2.398 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.004283/0.108, allocations: 1.717 MB / 476 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.611e-05/0.1081, allocations: 59.84 kB / 476.1 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003073/0.1084, allocations: 299.3 kB / 476.4 MB, free: 244 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/0.1084, allocations: 29.7 kB / 476.4 MB, free: 208 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001477/0.1086, allocations: 272.2 kB / 476.6 MB, free: 15.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.1087, allocations: 165.6 kB / 476.8 MB, free: 15.77 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/0.1088, allocations: 90.14 kB / 476.9 MB, free: 15.67 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.109, allocations: 342.8 kB / 477.2 MB, free: 15.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003328/0.1093, allocations: 157 kB / 477.4 MB, free: 15.17 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000354/0.1097, allocations: 234.6 kB / 477.6 MB, free: 14.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006703/0.1103, allocations: 413.1 kB / 478 MB, free: 14.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1103, allocations: 0 / 478 MB, free: 14.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009986/0.1114, allocations: 0.5559 MB / 478.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.1114, allocations: 10.19 kB / 478.6 MB, free: 13.9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.1114, allocations: 0 / 478.6 MB, free: 13.9 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002631/0.1117, allocations: 101.6 kB / 478.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004308/0.1121, allocations: 107.9 kB / 478.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002517/0.1146, allocations: 3.241 MB / 482 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002667/0.1149, allocations: 16.03 kB / 482 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.322e-05/0.115, allocations: 27.92 kB / 482.1 MB, free: 10.13 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.0002154/0.1152, allocations: 177.7 kB / 482.2 MB, free: 9.949 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.959e-05/0.1153, allocations: 51.53 kB / 482.3 MB, free: 9.898 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.277e-05/0.1153, allocations: 47.73 kB / 482.3 MB, free: 9.852 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.1154, allocations: 4 kB / 482.3 MB, free: 9.848 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.1154, allocations: 0 / 482.3 MB, free: 9.848 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.1154, allocations: 0 / 482.3 MB, free: 9.848 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001567/0.1169, allocations: 1.132 MB / 483.5 MB, free: 8.652 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.117, allocations: 0 / 483.5 MB, free: 8.652 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003733/0.1173, allocations: 87.88 kB / 483.6 MB, free: 8.566 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002275/0.1176, allocations: 97.62 kB / 483.7 MB, free: 8.465 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.816e-05/0.1176, allocations: 12 kB / 483.7 MB, free: 8.453 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002308/0.1199, allocations: 3.239 MB / 486.9 MB, free: 4.941 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.1199, allocations: 3.938 kB / 486.9 MB, free: 4.938 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001311/0.1213, allocations: 0.7646 MB / 487.7 MB, free: 4.148 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001542/0.1214, allocations: 144.7 kB / 487.8 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.982e-05/0.1215, allocations: 15.88 kB / 487.8 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002827/0.1218, allocations: 27.98 kB / 487.9 MB, free: 3.945 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.414e-05/0.1219, allocations: 36.02 kB / 487.9 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.674e-05/0.1219, allocations: 16.23 kB / 487.9 MB, free: 3.895 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000201/0.1221, allocations: 205.9 kB / 488.1 MB, free: 3.695 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1221, allocations: 0 / 488.1 MB, free: 3.695 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006257/0.1228, allocations: 120 kB / 488.2 MB, free: 3.578 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.0001374/0.1229, allocations: 113.2 kB / 488.3 MB, free: 3.457 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001152/0.1241, allocations: 0.6625 MB / 489 MB, free: 2.77 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.1241, allocations: 0.5625 kB / 489 MB, free: 2.77 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006598/0.1247, allocations: 493 kB / 489.5 MB, free: 2.262 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004396/0.1252, allocations: 48.64 kB / 489.5 MB, free: 2.215 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.127, allocations: 1.239 MB / 490.8 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.1274, allocations: 0.8434 MB / 491.6 MB, free: 80 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001884/0.1276, allocations: 39.27 kB / 491.7 MB, free: 44 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.374e-05/0.1276, allocations: 27.44 kB / 491.7 MB, free: 16 kB / 318.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1277, allocations: 0 / 491.7 MB, free: 16 kB / 318.1 MB Notification: Performance of Templates: time 0.007652/0.1353, allocations: 4.533 MB / 496.2 MB, free: 11.52 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)