Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance") translateModel(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00563/0.005631, allocations: 99.56 kB / 15.73 MB, free: 6.059 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.001166/0.001166, allocations: 193 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.463/1.463, allocations: 205.1 MB / 222.5 MB, free: 4.523 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 49.48 kB / 326.5 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1064, allocations: 46.64 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance): time 0.004358/0.1108, allocations: 3.228 MB / 376.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002165/0.113, allocations: 1.344 MB / 377.7 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002246/0.1132, allocations: 12 kB / 377.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004251/0.1137, allocations: 143.1 kB / 377.9 MB, free: 12.56 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008991/0.1146, allocations: 357.9 kB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000533/0.1151, allocations: 263.1 kB / 378.5 MB, free: 11.95 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005759/0.1157, allocations: 453.9 kB / 378.9 MB, free: 11.51 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002632/0.116, allocations: 156.1 kB / 379.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001839/0.1162, allocations: 163.4 kB / 379.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002813/0.1165, allocations: 199.1 kB / 379.5 MB, free: 11 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.45e-05/0.1165, allocations: 36 kB / 379.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003192/0.1169, allocations: 159.9 kB / 379.6 MB, free: 10.81 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.912e-05/0.1169, allocations: 79.7 kB / 379.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00018/0.1171, allocations: 198.9 kB / 379.9 MB, free: 10.54 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006656/0.1178, allocations: 0.5292 MB / 380.4 MB, free: 10 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1178, allocations: 4 kB / 380.4 MB, free: 10 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1178, allocations: 4 kB / 380.5 MB, free: 9.996 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.386e-06/0.1178, allocations: 0 / 380.5 MB, free: 9.996 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001447/0.1193, allocations: 0.7481 MB / 381.2 MB, free: 9.199 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.1193, allocations: 19.88 kB / 381.2 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006004/0.12, allocations: 96.61 kB / 381.3 MB, free: 9.086 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004304/0.1204, allocations: 304.7 kB / 381.6 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.941e-05/0.1204, allocations: 37.31 kB / 381.6 MB, free: 8.711 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.239e-05/0.1205, allocations: 32.38 kB / 381.7 MB, free: 8.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006018/0.1211, allocations: 361.6 kB / 382 MB, free: 8.316 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.1211, allocations: 0 / 382 MB, free: 8.316 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.467e-05/0.1212, allocations: 16 kB / 382 MB, free: 8.301 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.1212, allocations: 8 kB / 382.1 MB, free: 8.293 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004872/0.1217, allocations: 246.1 kB / 382.3 MB, free: 8.051 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001963/0.1236, allocations: 1.304 MB / 383.6 MB, free: 6.652 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000368/0.124, allocations: 205.1 kB / 383.8 MB, free: 6.434 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001667/0.1242, allocations: 85.67 kB / 383.9 MB, free: 6.344 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007787/0.125, allocations: 0.8714 MB / 384.8 MB, free: 5.371 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.125, allocations: 38.5 kB / 384.8 MB, free: 5.324 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.212e-06/0.125, allocations: 0 / 384.8 MB, free: 5.324 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005399/0.1256, allocations: 221.4 kB / 385 MB, free: 5.102 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.845e-05/0.1256, allocations: 85.03 kB / 385.1 MB, free: 5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000278/0.1259, allocations: 283.1 kB / 385.4 MB, free: 4.707 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.126, allocations: 33.7 kB / 385.4 MB, free: 4.668 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001434/0.1261, allocations: 244 kB / 385.6 MB, free: 4.422 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.815e-05/0.1262, allocations: 67.47 kB / 385.7 MB, free: 4.355 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.089e-05/0.1263, allocations: 57.98 kB / 385.8 MB, free: 4.289 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.1264, allocations: 338.8 kB / 386.1 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.1266, allocations: 68.61 kB / 386.2 MB, free: 3.883 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000227/0.1268, allocations: 198.3 kB / 386.4 MB, free: 3.629 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004077/0.1272, allocations: 292.9 kB / 386.6 MB, free: 3.281 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1272, allocations: 0 / 386.6 MB, free: 3.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005236/0.1277, allocations: 333 kB / 387 MB, free: 2.949 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.1278, allocations: 8 kB / 387 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.1278, allocations: 4 kB / 387 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.1278, allocations: 4 kB / 387 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003046/0.1281, allocations: 88.36 kB / 387.1 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.1281, allocations: 11.94 kB / 387.1 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001906/0.1283, allocations: 39.73 kB / 387.1 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.172e-05/0.1284, allocations: 16 kB / 387.1 MB, free: 2.781 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (39): * Single equations (assignments): 39 * 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 0.0001529/0.1285, allocations: 153.7 kB / 387.3 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.652e-05/0.1286, allocations: 23.86 kB / 387.3 MB, free: 2.598 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.504e-05/0.1287, allocations: 33.73 kB / 387.3 MB, free: 2.566 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.1287, allocations: 7.938 kB / 387.3 MB, free: 2.559 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.1287, allocations: 3.938 kB / 387.4 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.289e-06/0.1287, allocations: 4 kB / 387.4 MB, free: 2.551 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006924/0.1294, allocations: 0.5072 MB / 387.9 MB, free: 1.984 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.1294, allocations: 4 kB / 387.9 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002212/0.1296, allocations: 47.84 kB / 387.9 MB, free: 1.934 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.1297, allocations: 7.938 kB / 387.9 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.492e-05/0.1297, allocations: 4 kB / 387.9 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.1297, allocations: 4 kB / 387.9 MB, free: 1.918 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.1297, allocations: 8.016 kB / 387.9 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005367/0.1302, allocations: 407.3 kB / 388.3 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.437e-05/0.1303, allocations: 112.9 kB / 388.4 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.546e-05/0.1304, allocations: 4.062 kB / 388.4 MB, free: 1.359 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002064/0.1306, allocations: 19.98 kB / 388.5 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.979e-05/0.1306, allocations: 11.92 kB / 388.5 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.515e-05/0.1306, allocations: 8 kB / 388.5 MB, free: 1.32 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001845/0.1308, allocations: 198 kB / 388.7 MB, free: 1.129 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1308, allocations: 0 / 388.7 MB, free: 1.129 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004149/0.1313, allocations: 83.78 kB / 388.8 MB, free: 1.047 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inductor_e.i,converter_m.Phi.re) * 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 (17): * Single equations (assignments): 17 * 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.0001737/0.1314, allocations: 115.2 kB / 388.9 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003961/0.1318, allocations: 192.6 kB / 389.1 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1319, allocations: 0 / 389.1 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001416/0.132, allocations: 67.91 kB / 389.1 MB, free: 0.668 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003877/0.1324, allocations: 36.75 kB / 389.2 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/0.1334, allocations: 0.6545 MB / 389.8 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/0.1338, allocations: 0.7753 MB / 390.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001247/0.1339, allocations: 34.95 kB / 390.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.251e-05/0.134, allocations: 19.44 kB / 390.6 MB, free: 15.09 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.134, allocations: 7.938 kB / 390.7 MB, free: 15.09 MB / 334.1 MB Notification: Performance of Templates: time 0.005894/0.1399, allocations: 2.365 MB / 393 MB, free: 12.72 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe 2>&1)