Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.0007975/0.0007975, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.0008696/0.0008697, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.000435/0.0004351, allocations: 12 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2251/0.2255, allocations: 47.6 MB / 326.5 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.002431/0.228, allocations: 2.259 MB / 328.8 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001705/0.2297, allocations: 1.064 MB / 329.8 MB, free: 14.78 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.2298, allocations: 10.91 kB / 329.8 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000322/0.2302, allocations: 105.7 kB / 329.9 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002999/0.2305, allocations: 104.3 kB / 330 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001156/0.2317, allocations: 0.542 MB / 330.6 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004144/0.2321, allocations: 273.4 kB / 330.8 MB, free: 14.05 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009731/0.2331, allocations: 0.5265 MB / 331.4 MB, free: 13.64 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001769/0.2332, allocations: 107 kB / 331.5 MB, free: 13.59 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002071/0.2335, allocations: 135.8 kB / 331.6 MB, free: 13.52 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.351e-05/0.2335, allocations: 12.62 kB / 331.6 MB, free: 13.52 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003341/0.2338, allocations: 160.5 kB / 331.8 MB, free: 13.45 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.334e-05/0.2339, allocations: 42.28 kB / 331.8 MB, free: 13.41 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.148e-05/0.234, allocations: 76.58 kB / 331.9 MB, free: 13.36 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004135/0.2344, allocations: 373.1 kB / 332.3 MB, free: 13.09 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2344, allocations: 1.281 kB / 332.3 MB, free: 13.09 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2344, allocations: 0 / 332.3 MB, free: 13.09 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.2344, allocations: 4 kB / 332.3 MB, free: 13.08 MB / 270.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.001515/0.236, allocations: 0.6675 MB / 332.9 MB, free: 12.52 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.236, allocations: 12.56 kB / 332.9 MB, free: 12.51 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007991/0.2368, allocations: 126.3 kB / 333.1 MB, free: 12.45 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003175/0.2371, allocations: 246.6 kB / 333.3 MB, free: 12.2 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.726e-05/0.2372, allocations: 29.67 kB / 333.3 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.529e-05/0.2372, allocations: 37.47 kB / 333.4 MB, free: 12.16 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005799/0.2378, allocations: 327.3 kB / 333.7 MB, free: 11.96 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.2378, allocations: 0.9375 kB / 333.7 MB, free: 11.96 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.113e-05/0.2379, allocations: 14.66 kB / 333.7 MB, free: 11.95 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.2379, allocations: 8 kB / 333.7 MB, free: 11.95 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004326/0.2383, allocations: 246.8 kB / 334 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002002/0.2404, allocations: 1.447 MB / 335.4 MB, free: 10.3 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00066/0.241, allocations: 0.7012 MB / 336.1 MB, free: 9.48 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000162/0.2412, allocations: 105 kB / 336.2 MB, free: 9.375 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001014/0.2413, allocations: 85.09 kB / 336.3 MB, free: 9.273 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.688e-05/0.2413, allocations: 38.56 kB / 336.3 MB, free: 9.227 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.2414, allocations: 0 / 336.3 MB, free: 9.227 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.001194/0.2426, allocations: 0.4915 MB / 336.8 MB, free: 8.707 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.2426, allocations: 59.41 kB / 336.9 MB, free: 8.637 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001729/0.2428, allocations: 171.3 kB / 337 MB, free: 8.457 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.2428, allocations: 29.7 kB / 337.1 MB, free: 8.422 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.2429, allocations: 176 kB / 337.2 MB, free: 8.242 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.012e-05/0.243, allocations: 78.77 kB / 337.3 MB, free: 8.164 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.296e-05/0.243, allocations: 8 kB / 337.3 MB, free: 8.156 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.2431, allocations: 326.8 kB / 337.7 MB, free: 7.828 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.2433, allocations: 72.53 kB / 337.7 MB, free: 7.758 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001585/0.2435, allocations: 128.1 kB / 337.8 MB, free: 7.609 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001497/0.2436, allocations: 81.17 kB / 337.9 MB, free: 7.531 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2436, allocations: 4 kB / 337.9 MB, free: 7.527 MB / 270.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000557/0.2442, allocations: 320.8 kB / 338.2 MB, free: 7.207 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.2442, allocations: 8 kB / 338.3 MB, free: 7.199 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.2442, allocations: 0 / 338.3 MB, free: 7.199 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003069/0.2445, allocations: 85.02 kB / 338.3 MB, free: 7.113 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001614/0.2447, allocations: 47.92 kB / 338.4 MB, free: 7.066 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001929/0.2466, allocations: 1.831 MB / 340.2 MB, free: 5.102 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.2468, allocations: 23.78 kB / 340.2 MB, free: 5.078 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.913e-05/0.2468, allocations: 11.98 kB / 340.2 MB, free: 5.066 MB / 270.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001586/0.247, allocations: 153.8 kB / 340.4 MB, free: 4.906 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.151e-05/0.247, allocations: 19.77 kB / 340.4 MB, free: 4.887 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005418/0.2476, allocations: 288.5 kB / 340.7 MB, free: 4.602 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.2476, allocations: 11.94 kB / 340.7 MB, free: 4.59 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.2476, allocations: 0 / 340.7 MB, free: 4.59 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.2476, allocations: 3.984 kB / 340.7 MB, free: 4.586 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009547/0.2486, allocations: 0.6827 MB / 341.4 MB, free: 3.844 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.2486, allocations: 0 / 341.4 MB, free: 3.844 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.2487, allocations: 23.98 kB / 341.4 MB, free: 3.82 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002203/0.2489, allocations: 84.73 kB / 341.5 MB, free: 3.734 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.249, allocations: 0 / 341.5 MB, free: 3.734 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001697/0.2507, allocations: 1.82 MB / 343.3 MB, free: 1.777 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.2507, allocations: 0 / 343.3 MB, free: 1.777 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006278/0.2513, allocations: 463.6 kB / 343.8 MB, free: 1.305 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.79e-05/0.2514, allocations: 108.9 kB / 343.9 MB, free: 1.18 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.287e-05/0.2514, allocations: 4 kB / 343.9 MB, free: 1.176 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.2516, allocations: 4 kB / 343.9 MB, free: 1.172 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.253e-05/0.2516, allocations: 23.97 kB / 343.9 MB, free: 1.148 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.225e-05/0.2516, allocations: 8.062 kB / 343.9 MB, free: 1.141 MB / 270.1 MB Notification: Performance of sorting global known variables: time 9.901e-05/0.2517, allocations: 127.5 kB / 344 MB, free: 1.016 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2517, allocations: 0 / 344 MB, free: 1.016 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005056/0.2522, allocations: 95.83 kB / 344.1 MB, free: 0.9219 MB / 270.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001979/0.2525, allocations: 119.2 kB / 344.3 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0006218/0.2531, allocations: 350.4 kB / 344.6 MB, free: 452 kB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.2531, allocations: 3.938 kB / 344.6 MB, free: 448 kB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003227/0.2534, allocations: 243.5 kB / 344.8 MB, free: 192 kB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003273/0.2538, allocations: 23.89 kB / 344.9 MB, free: 168 kB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.2548, allocations: 0.706 MB / 345.6 MB, free: 15.43 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000357/0.2552, allocations: 0.7519 MB / 346.3 MB, free: 14.65 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001146/0.2553, allocations: 25.89 kB / 346.3 MB, free: 14.63 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.375e-05/0.2554, allocations: 19.42 kB / 346.4 MB, free: 14.61 MB / 286.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2554, allocations: 3.938 kB / 346.4 MB, free: 14.61 MB / 286.1 MB Notification: Performance of Templates: time 0.00564/0.261, allocations: 2.351 MB / 348.7 MB, free: 12.25 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1)