Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00701/0.00701, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001272/0.001272, allocations: 193.2 kB / 16.67 MB, free: 5.938 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.434/1.434, allocations: 205.1 MB / 222.6 MB, free: 4.527 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.001102/0.001102, allocations: 50.42 kB / 326.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08354/0.08465, allocations: 46.63 MB / 373.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003805/0.0885, allocations: 2.712 MB / 375.9 MB, free: 14.6 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001742/0.09026, allocations: 1.188 MB / 377.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.09042, allocations: 8 kB / 377.1 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001412/0.09184, allocations: 0.6185 MB / 377.7 MB, free: 12.78 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003179/0.09216, allocations: 135 kB / 377.8 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001247/0.09342, allocations: 0.677 MB / 378.5 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003579/0.09379, allocations: 294.6 kB / 378.8 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004293/0.09423, allocations: 274.8 kB / 379.1 MB, free: 11.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001546/0.09439, allocations: 127.5 kB / 379.2 MB, free: 11.28 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001957/0.0946, allocations: 171.4 kB / 379.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.23e-05/0.09465, allocations: 24 kB / 379.4 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003248/0.09498, allocations: 171.9 kB / 379.5 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.07e-05/0.09504, allocations: 63.7 kB / 379.6 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000122/0.09517, allocations: 155.3 kB / 379.8 MB, free: 10.71 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005526/0.09573, allocations: 490.2 kB / 380.2 MB, free: 10.23 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/0.09575, allocations: 11.94 kB / 380.2 MB, free: 10.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.09575, allocations: 0 / 380.2 MB, free: 10.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.09577, allocations: 0 / 380.2 MB, free: 10.21 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001538/0.09731, allocations: 0.7287 MB / 381 MB, free: 9.438 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.09736, allocations: 16.03 kB / 381 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007901/0.09815, allocations: 112.7 kB / 381.1 MB, free: 9.312 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003639/0.09853, allocations: 268.5 kB / 381.4 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.155e-05/0.09856, allocations: 25.03 kB / 381.4 MB, free: 8.988 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.333e-05/0.09862, allocations: 32.38 kB / 381.4 MB, free: 8.957 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005098/0.09913, allocations: 337 kB / 381.8 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.043e-05/0.09916, allocations: 3.984 kB / 381.8 MB, free: 8.609 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.964e-05/0.0992, allocations: 12 kB / 381.8 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.09921, allocations: 11.98 kB / 381.8 MB, free: 8.586 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003925/0.09961, allocations: 238.5 kB / 382 MB, free: 8.352 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001787/0.1014, allocations: 1.444 MB / 383.5 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006068/0.102, allocations: 0.7004 MB / 384.2 MB, free: 5.949 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001462/0.1022, allocations: 104.8 kB / 384.3 MB, free: 5.844 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.822e-05/0.1023, allocations: 89.03 kB / 384.3 MB, free: 5.738 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/0.1023, allocations: 38.56 kB / 384.4 MB, free: 5.691 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.783e-06/0.1023, allocations: 0 / 384.4 MB, free: 5.691 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.00116/0.1035, allocations: 495.3 kB / 384.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.115e-05/0.1035, allocations: 55.41 kB / 384.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001543/0.1037, allocations: 175.3 kB / 385.1 MB, free: 4.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.1037, allocations: 25.7 kB / 385.1 MB, free: 4.898 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.367e-05/0.1038, allocations: 184.4 kB / 385.3 MB, free: 4.715 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.692e-05/0.1039, allocations: 91.2 kB / 385.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.242e-05/0.104, allocations: 53.98 kB / 385.4 MB, free: 4.566 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.1041, allocations: 322.8 kB / 385.8 MB, free: 4.242 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001133/0.1042, allocations: 72.53 kB / 385.8 MB, free: 4.172 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001484/0.1044, allocations: 128.2 kB / 385.9 MB, free: 4.023 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002689/0.1046, allocations: 216.1 kB / 386.2 MB, free: 3.789 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1046, allocations: 0 / 386.2 MB, free: 3.789 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000531/0.1052, allocations: 336.5 kB / 386.5 MB, free: 3.453 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.1052, allocations: 4 kB / 386.5 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.1052, allocations: 4.219 kB / 386.5 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002961/0.1055, allocations: 84.73 kB / 386.6 MB, free: 3.359 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001423/0.1057, allocations: 39.92 kB / 386.6 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001844/0.1075, allocations: 2.029 MB / 388.6 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/0.1077, allocations: 27.81 kB / 388.7 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.1077, allocations: 20 kB / 388.7 MB, free: 1.102 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001331/0.1078, allocations: 141.8 kB / 388.8 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.245e-05/0.1079, allocations: 19.84 kB / 388.9 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005195/0.1084, allocations: 292 kB / 389.1 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.1084, allocations: 0 / 389.1 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.1084, allocations: 4 kB / 389.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.1084, allocations: 0 / 389.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009007/0.1093, allocations: 0.6837 MB / 389.8 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1094, allocations: 0 / 389.8 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001133/0.1095, allocations: 31.92 kB / 389.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002191/0.1097, allocations: 76.81 kB / 389.9 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.1097, allocations: 4 kB / 389.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001756/0.1115, allocations: 2.041 MB / 392 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1115, allocations: 0 / 392 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005965/0.1121, allocations: 460.5 kB / 392.4 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.212e-05/0.1122, allocations: 109 kB / 392.5 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.317e-05/0.1122, allocations: 4 kB / 392.5 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.1124, allocations: 4 kB / 392.5 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.652e-05/0.1124, allocations: 15.98 kB / 392.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.1124, allocations: 8.062 kB / 392.6 MB, free: 12.97 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001027/0.1125, allocations: 131.2 kB / 392.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1125, allocations: 0 / 392.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000531/0.1131, allocations: 95.78 kB / 392.8 MB, free: 12.75 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * 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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001994/0.1133, allocations: 123.2 kB / 392.9 MB, free: 12.62 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000577/0.1139, allocations: 362.1 kB / 393.3 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.1139, allocations: 4 kB / 393.3 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003101/0.1142, allocations: 246.9 kB / 393.5 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000282/0.1145, allocations: 23.91 kB / 393.5 MB, free: 11.97 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000932/0.1154, allocations: 0.5586 MB / 394.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.1158, allocations: 0.756 MB / 394.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.749e-05/0.1159, allocations: 17.95 kB / 394.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.587e-05/0.1159, allocations: 19.44 kB / 394.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1159, allocations: 0 / 394.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of Templates: time 0.005884/0.1218, allocations: 2.579 MB / 397.5 MB, free: 7.984 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1)