Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.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.Electrical.Machines.Examples.Transformers.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer") translateModel(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 100.3 kB / 15.05 MB, free: 1.105 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.001437/0.001437, allocations: 177.3 kB / 15.94 MB, free: 228 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.608/1.608, allocations: 205.4 MB / 222.1 MB, free: 5.531 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.0006298/0.00063, allocations: 11.98 kB / 278.9 MB, free: 12.71 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2569, allocations: 47.58 MB / 326.4 MB, free: 1.457 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.01009/0.2671, allocations: 10.35 MB / 336.8 MB, free: 9.141 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007726/0.2749, allocations: 4.152 MB / 341 MB, free: 4.98 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002109/0.277, allocations: 63.69 kB / 341 MB, free: 4.918 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002463/0.2795, allocations: 0.8085 MB / 341.8 MB, free: 4.105 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004413/0.2839, allocations: 0.9892 MB / 342.8 MB, free: 3.113 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001158/0.2851, allocations: 319.6 kB / 343.1 MB, free: 2.801 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00508/0.2902, allocations: 2.963 MB / 346.1 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003089/0.2933, allocations: 2.526 MB / 348.6 MB, free: 13.25 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002353/0.2957, allocations: 1.444 MB / 350.1 MB, free: 11.8 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002512/0.2982, allocations: 1.805 MB / 351.9 MB, free: 9.992 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004886/0.2987, allocations: 240 kB / 352.1 MB, free: 9.758 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008342/0.2995, allocations: 315.9 kB / 352.4 MB, free: 9.449 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001004/0.3006, allocations: 1.075 MB / 353.5 MB, free: 8.371 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008739/0.3014, allocations: 0.8394 MB / 354.3 MB, free: 7.523 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005303/0.3068, allocations: 5.952 MB / 360.3 MB, free: 1.555 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.3068, allocations: 4 kB / 360.3 MB, free: 1.551 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.3068, allocations: 0 / 360.3 MB, free: 1.551 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0002197/0.307, allocations: 0 / 360.3 MB, free: 1.551 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.008545/0.3156, allocations: 3.97 MB / 364.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.3156, allocations: 12.03 kB / 364.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00174/0.3174, allocations: 0.4947 MB / 364.8 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004533/0.3219, allocations: 2.307 MB / 367.1 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002153/0.3222, allocations: 267 kB / 367.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005477/0.3227, allocations: 351.9 kB / 367.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007782/0.3305, allocations: 4.978 MB / 372.6 MB, free: 5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.59e-05/0.3306, allocations: 7.906 kB / 372.7 MB, free: 4.992 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003063/0.3309, allocations: 152 kB / 372.8 MB, free: 4.844 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001636/0.3311, allocations: 187 kB / 373 MB, free: 4.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006845/0.3379, allocations: 4.287 MB / 377.3 MB, free: 376 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02367/0.3616, allocations: 14.95 MB / 392.2 MB, free: 1.094 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004286/0.3659, allocations: 4.2 MB / 396.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002564/0.3662, allocations: 131.1 kB / 396.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.907e-05/0.3663, allocations: 60.56 kB / 396.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=198): time 3.286e-06/0.3663, allocations: 0 / 396.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=218): time 0.02491/0.3912, allocations: 10.33 MB / 406.9 MB, free: 1.906 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.69e-05/0.3914, allocations: 77.39 kB / 407 MB, free: 1.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006036/0.3974, allocations: 2.443 MB / 409.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004111/0.3979, allocations: 61.7 kB / 409.5 MB, free: 15.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001612/0.3995, allocations: 1.619 MB / 411.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001009/0.4005, allocations: 0.7316 MB / 411.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002565/0.4008, allocations: 52 kB / 411.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002812/0.4011, allocations: 398.6 kB / 412.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003152/0.4042, allocations: 1.316 MB / 413.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002791/0.407, allocations: 1.798 MB / 415.4 MB, free: 9.148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003262/0.4103, allocations: 1.571 MB / 417 MB, free: 7.578 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-05/0.4104, allocations: 8 kB / 417 MB, free: 7.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.01036/0.4207, allocations: 4.103 MB / 421.1 MB, free: 3.441 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.492e-05/0.4208, allocations: 12 kB / 421.1 MB, free: 3.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.843e-05/0.4209, allocations: 12 kB / 421.1 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003983/0.4249, allocations: 0.8751 MB / 422 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003075/0.4279, allocations: 0.5343 MB / 422.5 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01456/0.4425, allocations: 8.934 MB / 431.5 MB, free: 8.652 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002417/0.445, allocations: 119.9 kB / 431.6 MB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004711/0.4455, allocations: 88 kB / 431.7 MB, free: 8.449 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (252): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 25,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002865/0.4484, allocations: 1.22 MB / 432.9 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008984/0.4493, allocations: 272.7 kB / 433.2 MB, free: 6.953 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007086/0.4564, allocations: 3.766 MB / 436.9 MB, free: 3.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.958e-05/0.4564, allocations: 20.09 kB / 436.9 MB, free: 3.141 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-05/0.4564, allocations: 8 kB / 436.9 MB, free: 3.133 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-05/0.4565, allocations: 15.95 kB / 437 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01662/0.4731, allocations: 8.083 MB / 445 MB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.113e-05/0.4732, allocations: 4 kB / 445.1 MB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001705/0.4749, allocations: 387.8 kB / 445.4 MB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003394/0.4783, allocations: 0.9328 MB / 446.4 MB, free: 9.582 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002349/0.4786, allocations: 51.98 kB / 446.4 MB, free: 9.531 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2169/0.6955, allocations: 10.42 MB / 456.8 MB, free: 107.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.311e-05/0.6956, allocations: 10.5 kB / 456.8 MB, free: 107.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009682/0.7053, allocations: 5.798 MB / 462.6 MB, free: 105.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00246/0.7078, allocations: 0.6298 MB / 463.3 MB, free: 105.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005027/0.7083, allocations: 51.52 kB / 463.3 MB, free: 105.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001399/0.7097, allocations: 131.6 kB / 463.4 MB, free: 105.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004286/0.7101, allocations: 182.2 kB / 463.6 MB, free: 105.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001248/0.7103, allocations: 60.81 kB / 463.7 MB, free: 105.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002351/0.7126, allocations: 1.68 MB / 465.4 MB, free: 104.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.52e-07/0.7126, allocations: 0 / 465.4 MB, free: 104.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002571/0.7152, allocations: 0.7966 MB / 466.2 MB, free: 104.6 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000519/0.7158, allocations: 203.5 kB / 466.4 MB, free: 104.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005243/0.721, allocations: 3.936 MB / 470.3 MB, free: 102.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/0.721, allocations: 3.906 kB / 470.3 MB, free: 102.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003241/0.7243, allocations: 2.504 MB / 472.8 MB, free: 101.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003507/0.7278, allocations: 0.7118 MB / 473.5 MB, free: 101 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01137/0.7392, allocations: 9.113 MB / 482.6 MB, free: 92.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002005/0.7413, allocations: 2.847 MB / 485.5 MB, free: 89.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002325/0.7436, allocations: 0.6866 MB / 486.2 MB, free: 88.81 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004869/0.7441, allocations: 175.4 kB / 486.3 MB, free: 88.64 MB / 382.1 MB Notification: Performance of SimCode: time 1.613e-06/0.7441, allocations: 0 / 486.3 MB, free: 88.64 MB / 382.1 MB Notification: Performance of Templates: time 0.06168/0.8058, allocations: 42.27 MB / 0.5162 GB, free: 46.33 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe 2>&1) Environment - environmentSimulation: