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_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009992/0.0009991, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007024/0.007024, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.361/1.361, allocations: 205.4 MB / 222.4 MB, free: 5.574 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.0004664/0.0004665, allocations: 12.28 kB / 279.5 MB, free: 12.49 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2155/0.216, allocations: 47.59 MB / 327.1 MB, free: 1.527 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03883/0.2549, allocations: 39.4 MB / 366.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02566/0.2806, allocations: 10.88 MB / 377.3 MB, free: 1.016 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009076/0.2897, allocations: 259.1 kB / 377.6 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007697/0.2975, allocations: 2.274 MB / 379.9 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0143/0.3118, allocations: 3.433 MB / 383.3 MB, free: 11.03 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007207/0.319, allocations: 2.063 MB / 385.4 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01828/0.3373, allocations: 14.08 MB / 399.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04331/0.3807, allocations: 24.51 MB / 424 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009185/0.3899, allocations: 5.078 MB / 429 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01036/0.4003, allocations: 6.402 MB / 435.4 MB, free: 6.617 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003234/0.4036, allocations: 0.793 MB / 436.2 MB, free: 5.824 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005179/0.4088, allocations: 1.171 MB / 437.4 MB, free: 4.656 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004024/0.4128, allocations: 2.74 MB / 440.1 MB, free: 1.906 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01009/0.423, allocations: 6.392 MB / 446.5 MB, free: 11.47 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3332/0.7562, allocations: 25.32 MB / 471.9 MB, free: 38.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.7562, allocations: 0 / 471.9 MB, free: 38.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.7562, allocations: 0 / 471.9 MB, free: 38.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007014/0.757, allocations: 0 / 471.9 MB, free: 38.63 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: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.03447/0.7914, allocations: 13.21 MB / 485.1 MB, free: 31.99 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.7915, allocations: 7.781 kB / 485.1 MB, free: 31.99 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04829/0.8398, allocations: 9.21 MB / 494.3 MB, free: 28.42 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01523/0.8551, allocations: 7.682 MB / 0.4902 GB, free: 26.31 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009842/0.8561, allocations: 0.9768 MB / 0.4912 GB, free: 26.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005548/0.8616, allocations: 1.274 MB / 0.4924 GB, free: 25.94 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04746/0.9091, allocations: 20.52 MB / 0.5124 GB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003946/0.9095, allocations: 27.8 kB / 0.5125 GB, free: 9.332 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002438/0.912, allocations: 0.526 MB / 0.513 GB, free: 8.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005272/0.9125, allocations: 0.7416 MB / 0.5137 GB, free: 8.078 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03444/0.947, allocations: 19.25 MB / 0.5325 GB, free: 4.824 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1035/1.051, allocations: 65.26 MB / 0.5962 GB, free: 2.91 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2066/1.257, allocations: 57.24 MB / 0.6521 GB, free: 126.2 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007318/1.265, allocations: 4.206 MB / 0.6562 GB, free: 126.1 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01888/1.283, allocations: 11.68 MB / 0.6676 GB, free: 121 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.518e-05/1.284, allocations: 77.19 kB / 0.6677 GB, free: 121 MB / 478.1 MB Notification: Performance of pre-optimization done (n=361): time 5.79e-06/1.284, allocations: 0 / 0.6677 GB, free: 121 MB / 478.1 MB Notification: Performance of matching and sorting (n=403): time 0.0338/1.317, allocations: 17.89 MB / 0.6852 GB, free: 113.3 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.948e-05/1.317, allocations: 98.89 kB / 0.6853 GB, free: 113.2 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007744/1.325, allocations: 5.68 MB / 0.6908 GB, free: 110.9 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000657/1.326, allocations: 93.7 kB / 0.6909 GB, free: 110.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002887/1.329, allocations: 6.045 MB / 0.6968 GB, free: 105.4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001319/1.33, allocations: 1.42 MB / 0.6982 GB, free: 104.2 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008438/1.331, allocations: 0.6072 MB / 0.6988 GB, free: 103.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.232e-05/1.331, allocations: 306.3 kB / 0.6991 GB, free: 103.4 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004109/1.335, allocations: 3.153 MB / 0.7022 GB, free: 100.7 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005302/1.34, allocations: 6.891 MB / 0.7089 GB, free: 92.63 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01042/1.351, allocations: 10.82 MB / 0.7195 GB, free: 80.73 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-05/1.351, allocations: 36 kB / 0.7195 GB, free: 80.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01694/1.368, allocations: 11.04 MB / 0.7303 GB, free: 70.47 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.161e-05/1.368, allocations: 60 kB / 0.7303 GB, free: 70.41 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000204/1.368, allocations: 128 kB / 0.7305 GB, free: 70.29 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002297/1.371, allocations: 0.9728 MB / 0.7314 GB, free: 69.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006461/1.377, allocations: 1.86 MB / 0.7332 GB, free: 67.44 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009783/1.387, allocations: 9.558 MB / 0.7426 GB, free: 57.48 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00676/1.394, allocations: 455.3 kB / 0.743 GB, free: 57.04 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001503/1.395, allocations: 428 kB / 0.7434 GB, free: 56.62 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (958): * Single equations (assignments): 953 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008286/1.404, allocations: 4.515 MB / 0.7478 GB, free: 52.09 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001378/1.405, allocations: 0.5706 MB / 0.7484 GB, free: 51.51 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01018/1.415, allocations: 6.711 MB / 0.7549 GB, free: 44.76 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-05/1.415, allocations: 47.98 kB / 0.755 GB, free: 44.71 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.656e-05/1.415, allocations: 8 kB / 0.755 GB, free: 44.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.559e-05/1.415, allocations: 21.12 kB / 0.755 GB, free: 44.68 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02504/1.44, allocations: 16.49 MB / 0.7711 GB, free: 28.16 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.371e-05/1.44, allocations: 4 kB / 0.7711 GB, free: 28.15 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003193/1.444, allocations: 0.7845 MB / 0.7719 GB, free: 27.37 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002129/1.446, allocations: 0.7897 MB / 0.7727 GB, free: 26.56 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000436/1.446, allocations: 91.97 kB / 0.7727 GB, free: 26.47 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008105/1.454, allocations: 8.67 MB / 0.7812 GB, free: 17.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/1.454, allocations: 11.88 kB / 0.7812 GB, free: 17.39 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01359/1.468, allocations: 9.826 MB / 0.7908 GB, free: 7.445 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002668/1.471, allocations: 1.146 MB / 0.7919 GB, free: 6.273 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008382/1.471, allocations: 76 kB / 0.792 GB, free: 6.199 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002489/1.474, allocations: 225.8 kB / 0.7922 GB, free: 5.98 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005644/1.475, allocations: 278.8 kB / 0.7925 GB, free: 5.707 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002374/1.475, allocations: 120 kB / 0.7926 GB, free: 5.59 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005314/1.48, allocations: 3.75 MB / 0.7963 GB, free: 1.875 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.91e-07/1.48, allocations: 0 / 0.7963 GB, free: 1.875 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.2045/1.685, allocations: 2.044 MB / 0.7983 GB, free: 158.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.phi) * 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 (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001371/1.686, allocations: 257.4 kB / 0.7985 GB, free: 158.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01232/1.698, allocations: 8.235 MB / 0.8065 GB, free: 157 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/1.698, allocations: 3.188 kB / 0.8065 GB, free: 157 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005578/1.704, allocations: 3.62 MB / 0.8101 GB, free: 155.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01028/1.714, allocations: 1.335 MB / 0.8114 GB, free: 154.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03661/1.751, allocations: 27 MB / 0.8378 GB, free: 139.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008495/1.76, allocations: 7.696 MB / 0.8453 GB, free: 135.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006725/1.766, allocations: 2.397 MB / 0.8476 GB, free: 133.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001264/1.768, allocations: 449.8 kB / 0.848 GB, free: 133.3 MB / 478.1 MB Notification: Performance of SimCode: time 1.302e-06/1.768, allocations: 0 / 0.848 GB, free: 133.3 MB / 478.1 MB Notification: Performance of Templates: time 0.1195/1.887, allocations: 78.51 MB / 0.9247 GB, free: 59 MB / 478.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)