Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007991/0.007991, allocations: 104.1 kB / 15.74 MB, free: 6.02 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.001508/0.001508, allocations: 192.5 kB / 16.68 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.596/1.596, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001345/0.001345, allocations: 59.31 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1081, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03497/0.1431, allocations: 30.23 MB / 403.4 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02185/0.165, allocations: 8.631 MB / 412.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007543/0.1726, allocations: 171.4 kB / 412.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01338/0.1861, allocations: 4.958 MB / 417.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01169/0.1978, allocations: 3.035 MB / 420.2 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005743/0.2035, allocations: 1.609 MB / 421.8 MB, free: 476 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01388/0.2174, allocations: 8.711 MB / 430.5 MB, free: 7.723 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0228/0.2403, allocations: 12.83 MB / 443.4 MB, free: 10.8 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009003/0.2493, allocations: 4.238 MB / 447.6 MB, free: 6.547 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00887/0.2582, allocations: 4.737 MB / 452.3 MB, free: 1.793 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003794/0.2621, allocations: 1.164 MB / 453.5 MB, free: 0.6289 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2451/0.5071, allocations: 1.519 MB / 455 MB, free: 23.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00416/0.5113, allocations: 2.412 MB / 457.4 MB, free: 23.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01281/0.5242, allocations: 4.671 MB / 462.1 MB, free: 23.24 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02475/0.549, allocations: 15.76 MB / 477.9 MB, free: 20.45 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.037e-06/0.549, allocations: 1.125 kB / 477.9 MB, free: 20.45 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.437e-06/0.549, allocations: 0 / 477.9 MB, free: 20.45 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005035/0.5495, allocations: 3.938 kB / 477.9 MB, free: 20.45 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.03254/0.5821, allocations: 9.935 MB / 487.8 MB, free: 14.63 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.5822, allocations: 8.906 kB / 487.8 MB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02969/0.6119, allocations: 5.306 MB / 493.1 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01313/0.625, allocations: 4.723 MB / 497.9 MB, free: 9.137 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004017/0.6255, allocations: 0.5258 MB / 498.4 MB, free: 8.902 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003733/0.6292, allocations: 0.7065 MB / 499.1 MB, free: 8.668 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02263/0.6519, allocations: 11.32 MB / 0.4984 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002025/0.6521, allocations: 23.17 kB / 0.4985 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001053/0.6531, allocations: 294.6 kB / 0.4987 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003279/0.6535, allocations: 443 kB / 0.4992 GB, free: 52 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0247/0.6782, allocations: 10.82 MB / 0.5097 GB, free: 5.234 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06661/0.7448, allocations: 37.68 MB / 0.5465 GB, free: 15.16 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02134/0.7662, allocations: 28.1 MB / 0.574 GB, free: 15.25 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005387/0.7716, allocations: 2.666 MB / 0.5766 GB, free: 12.57 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01902/0.7907, allocations: 7.909 MB / 0.5843 GB, free: 4.629 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.129e-05/0.7908, allocations: 60.55 kB / 0.5844 GB, free: 4.562 MB / 478.1 MB Notification: Performance of pre-optimization done (n=217): time 6.542e-06/0.7908, allocations: 0 / 0.5844 GB, free: 4.562 MB / 478.1 MB Notification: Performance of matching and sorting (n=233): time 0.02468/0.8155, allocations: 10.47 MB / 0.5946 GB, free: 10.11 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002524/0.8181, allocations: 2.012 MB / 0.5965 GB, free: 7.934 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009474/0.8276, allocations: 3.83 MB / 0.6003 GB, free: 4.125 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003813/0.828, allocations: 61.7 kB / 0.6003 GB, free: 4.059 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002661/0.8307, allocations: 3.681 MB / 0.6039 GB, free: 384 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009128/0.8316, allocations: 0.8611 MB / 0.6048 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001443/0.833, allocations: 0.9613 MB / 0.6057 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001102/0.8332, allocations: 305.1 kB / 0.606 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002674/0.8358, allocations: 1.895 MB / 0.6079 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004188/0.84, allocations: 4.392 MB / 0.6121 GB, free: 6.777 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007571/0.8476, allocations: 6.782 MB / 0.6188 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.436e-05/0.8477, allocations: 24 kB / 0.6188 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01261/0.8603, allocations: 7.005 MB / 0.6256 GB, free: 8.629 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.319e-05/0.8604, allocations: 43.98 kB / 0.6257 GB, free: 8.586 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001535/0.8606, allocations: 88 kB / 0.6258 GB, free: 8.5 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002062/0.8627, allocations: 0.7366 MB / 0.6265 GB, free: 7.758 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003985/0.8667, allocations: 1.115 MB / 0.6276 GB, free: 6.73 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007488/0.8742, allocations: 5.643 MB / 0.6331 GB, free: 1 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005289/0.8795, allocations: 319.4 kB / 0.6334 GB, free: 0.6875 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001024/0.8805, allocations: 272 kB / 0.6336 GB, free: 432 kB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * 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 (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.3287/1.209, allocations: 2.525 MB / 0.6361 GB, free: 153.7 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00161/1.211, allocations: 402.4 kB / 0.6365 GB, free: 153.7 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009367/1.22, allocations: 4.27 MB / 0.6407 GB, free: 153.5 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.59e-05/1.22, allocations: 25.09 kB / 0.6407 GB, free: 153.5 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.588e-05/1.22, allocations: 5.594 kB / 0.6407 GB, free: 153.5 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.527e-05/1.22, allocations: 18.36 kB / 0.6407 GB, free: 153.5 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03084/1.251, allocations: 14.27 MB / 0.6546 GB, free: 151.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.39e-05/1.251, allocations: 11.09 kB / 0.6547 GB, free: 151.3 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001899/1.253, allocations: 480.6 kB / 0.6551 GB, free: 151.3 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002097/1.255, allocations: 0.6932 MB / 0.6558 GB, free: 151.1 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002685/1.256, allocations: 68.78 kB / 0.6559 GB, free: 151.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008327/1.264, allocations: 7.509 MB / 0.6632 GB, free: 146.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001489/1.265, allocations: 1.949 MB / 0.6651 GB, free: 144.5 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00987/1.275, allocations: 6.764 MB / 0.6717 GB, free: 141.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002796/1.278, allocations: 0.8112 MB / 0.6725 GB, free: 141.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009554/1.279, allocations: 61.92 kB / 0.6725 GB, free: 141.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002139/1.281, allocations: 165.5 kB / 0.6727 GB, free: 141 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005273/1.282, allocations: 221.2 kB / 0.6729 GB, free: 141 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001859/1.282, allocations: 88.34 kB / 0.673 GB, free: 141 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004182/1.286, allocations: 2.514 MB / 0.6755 GB, free: 140 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.31e-07/1.286, allocations: 0 / 0.6755 GB, free: 140 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006969/1.293, allocations: 1.289 MB / 0.6767 GB, free: 138.7 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * 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 (241): * Single equations (assignments): 238 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007445/1.294, allocations: 246.4 kB / 0.677 GB, free: 138.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007953/1.302, allocations: 5.173 MB / 0.682 GB, free: 133.7 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-05/1.302, allocations: 1.625 kB / 0.682 GB, free: 133.7 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003657/1.306, allocations: 2.422 MB / 0.6844 GB, free: 131.3 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006061/1.312, allocations: 0.9881 MB / 0.6853 GB, free: 130.4 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02498/1.337, allocations: 12.5 MB / 0.6975 GB, free: 117.7 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006032/1.343, allocations: 4.497 MB / 0.7019 GB, free: 113.2 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004246/1.347, allocations: 1.36 MB / 0.7033 GB, free: 111.8 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008137/1.348, allocations: 299 kB / 0.7035 GB, free: 111.5 MB / 0.5137 GB Notification: Performance of SimCode: time 1.162e-06/1.348, allocations: 0 / 0.7035 GB, free: 111.5 MB / 0.5137 GB Notification: Performance of Templates: time 0.09231/1.44, allocations: 53.32 MB / 0.7556 GB, free: 58.34 MB / 0.5137 GB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1)