Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.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.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001634/0.001634, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002101/0.002101, allocations: 194.3 kB / 16.53 MB, free: 6.391 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.339/1.339, allocations: 205.1 MB / 222.4 MB, free: 4.586 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.001237/0.001237, allocations: 47.92 kB / 278.7 MB, free: 12.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2052/0.2064, allocations: 46.64 MB / 325.3 MB, free: 1.887 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02185/0.2284, allocations: 20.21 MB / 345.5 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01152/0.2399, allocations: 5.959 MB / 351.5 MB, free: 9.688 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003256/0.2432, allocations: 119.5 kB / 351.6 MB, free: 9.57 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00393/0.2472, allocations: 1.335 MB / 352.9 MB, free: 8.227 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005993/0.2532, allocations: 1.914 MB / 354.9 MB, free: 6.301 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003309/0.2565, allocations: 1.243 MB / 356.1 MB, free: 5.055 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007595/0.2641, allocations: 6.083 MB / 362.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007676/0.2718, allocations: 5.37 MB / 367.6 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004597/0.2764, allocations: 2.808 MB / 370.4 MB, free: 6.672 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005964/0.2824, allocations: 3.398 MB / 373.8 MB, free: 3.262 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002528/0.285, allocations: 0.7812 MB / 374.5 MB, free: 2.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004356/0.2893, allocations: 1.062 MB / 375.6 MB, free: 1.418 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003357/0.2927, allocations: 1.944 MB / 377.5 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007206/0.3, allocations: 3.353 MB / 380.9 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01486/0.3148, allocations: 10.2 MB / 391.1 MB, free: 1.863 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.353e-06/0.3149, allocations: 0 / 391.1 MB, free: 1.863 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3149, allocations: 0 / 391.1 MB, free: 1.863 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003654/0.3153, allocations: 3.938 kB / 391.1 MB, free: 1.859 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01979/0.3351, allocations: 6.578 MB / 397.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.3352, allocations: 12.03 kB / 397.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005994/0.3412, allocations: 1.005 MB / 398.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006809/0.348, allocations: 3.318 MB / 402 MB, free: 6.781 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003501/0.3484, allocations: 394.8 kB / 402.4 MB, free: 6.395 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009044/0.3493, allocations: 0.5037 MB / 402.9 MB, free: 5.891 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01396/0.3633, allocations: 6.767 MB / 409.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000125/0.3634, allocations: 11.91 kB / 409.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005127/0.364, allocations: 204 kB / 409.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002395/0.3642, allocations: 250.2 kB / 410.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01089/0.3751, allocations: 5.736 MB / 415.9 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03569/0.4108, allocations: 21.09 MB / 437 MB, free: 3.262 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008706/0.4196, allocations: 8.546 MB / 445.5 MB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003617/0.4233, allocations: 2.116 MB / 447.6 MB, free: 7.641 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01158/0.4349, allocations: 5.95 MB / 453.6 MB, free: 1.551 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.743e-05/0.4349, allocations: 56.56 kB / 453.6 MB, free: 1.488 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 6.893e-06/0.435, allocations: 3.984 kB / 453.6 MB, free: 1.484 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.1888/0.6238, allocations: 10.25 MB / 463.9 MB, free: 104.6 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.043e-05/0.6238, allocations: 73.19 kB / 464 MB, free: 104.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003458/0.6273, allocations: 2.91 MB / 466.9 MB, free: 103.4 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001354/0.6275, allocations: 61.64 kB / 466.9 MB, free: 103.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001178/0.6286, allocations: 2.352 MB / 469.3 MB, free: 101.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004505/0.6291, allocations: 0.7666 MB / 470 MB, free: 101 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006272/0.6297, allocations: 0.515 MB / 470.6 MB, free: 100.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.693e-05/0.6298, allocations: 301.1 kB / 470.9 MB, free: 100.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001689/0.6315, allocations: 1.272 MB / 472.1 MB, free: 99.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00192/0.6334, allocations: 2.183 MB / 474.3 MB, free: 98.32 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00368/0.6371, allocations: 3.66 MB / 478 MB, free: 95.94 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.178e-05/0.6371, allocations: 10.88 kB / 478 MB, free: 95.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006112/0.6432, allocations: 4.445 MB / 482.4 MB, free: 92.28 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.837e-05/0.6433, allocations: 20.09 kB / 482.4 MB, free: 92.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.85e-05/0.6433, allocations: 28 kB / 482.5 MB, free: 92.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009953/0.6443, allocations: 0.5172 MB / 483 MB, free: 91.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002207/0.6465, allocations: 0.6864 MB / 483.7 MB, free: 91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006171/0.6527, allocations: 10.19 MB / 493.9 MB, free: 80.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002451/0.6552, allocations: 175.8 kB / 494 MB, free: 79.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001705/0.6554, allocations: 128 kB / 494.2 MB, free: 79.86 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (348): * Single equations (assignments): 341 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * 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): 5 systems {(3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002238/0.6576, allocations: 1.516 MB / 495.7 MB, free: 78.33 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005673/0.6582, allocations: 325.5 kB / 496 MB, free: 78.01 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005307/0.6635, allocations: 3.866 MB / 499.9 MB, free: 74.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.359e-05/0.6635, allocations: 27 kB / 499.9 MB, free: 74.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/0.6636, allocations: 8 kB / 499.9 MB, free: 74.01 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.818e-05/0.6636, allocations: 11.95 kB / 499.9 MB, free: 74 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01125/0.6748, allocations: 8.497 MB / 0.4965 GB, free: 65.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.957e-06/0.6749, allocations: 4 kB / 0.4965 GB, free: 65.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001487/0.6764, allocations: 384 kB / 0.4969 GB, free: 65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001643/0.678, allocations: 0.7301 MB / 0.4976 GB, free: 64.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001477/0.6782, allocations: 67.91 kB / 0.4976 GB, free: 64.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01101/0.6892, allocations: 16.62 MB / 0.5139 GB, free: 46.47 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.6892, allocations: 4 kB / 0.5139 GB, free: 46.47 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007499/0.6967, allocations: 5.547 MB / 0.5193 GB, free: 40.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001584/0.6984, allocations: 0.6455 MB / 0.5199 GB, free: 40.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006537/0.699, allocations: 63.92 kB / 0.52 GB, free: 40.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001605/0.7006, allocations: 131.9 kB / 0.5201 GB, free: 39.92 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000382/0.701, allocations: 169.6 kB / 0.5203 GB, free: 39.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000119/0.7011, allocations: 59.98 kB / 0.5203 GB, free: 39.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002332/0.7035, allocations: 1.971 MB / 0.5223 GB, free: 37.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.7035, allocations: 0 / 0.5223 GB, free: 37.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003264/0.7068, allocations: 0.931 MB / 0.5232 GB, free: 36.8 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.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 (185): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005065/0.7073, allocations: 250.1 kB / 0.5234 GB, free: 36.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.009127/0.7164, allocations: 5.412 MB / 0.5287 GB, free: 31.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.675e-06/0.7165, allocations: 4.312 kB / 0.5287 GB, free: 31.07 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003319/0.7198, allocations: 2.653 MB / 0.5313 GB, free: 28.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003795/0.7236, allocations: 0.8419 MB / 0.5321 GB, free: 27.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01411/0.7377, allocations: 9.596 MB / 0.5415 GB, free: 17.83 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002384/0.7402, allocations: 3.297 MB / 0.5447 GB, free: 14.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002434/0.7426, allocations: 0.7578 MB / 0.5454 GB, free: 13.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005561/0.7432, allocations: 223.4 kB / 0.5456 GB, free: 13.52 MB / 382.1 MB Notification: Performance of SimCode: time 1.102e-06/0.7432, allocations: 0 / 0.5456 GB, free: 13.52 MB / 382.1 MB Notification: Performance of Templates: time 0.0751/0.8183, allocations: 47.32 MB / 0.5919 GB, free: 14.16 MB / 430.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)