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.000891/0.000891, allocations: 98.27 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.005635/0.005635, allocations: 169.5 kB / 16.27 MB, free: 6.336 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.413/1.413, allocations: 205.4 MB / 222.4 MB, free: 5.555 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.0004358/0.0004361, allocations: 8 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2425, allocations: 47.58 MB / 327 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01943/0.262, allocations: 19.13 MB / 346.2 MB, free: 180 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01209/0.2742, allocations: 5.827 MB / 352 MB, free: 10.33 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003119/0.2773, allocations: 107.5 kB / 352.1 MB, free: 10.22 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003225/0.2806, allocations: 1.142 MB / 353.2 MB, free: 9.074 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005779/0.2864, allocations: 1.721 MB / 355 MB, free: 7.344 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003028/0.2894, allocations: 1.123 MB / 356.1 MB, free: 6.219 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.008374/0.2978, allocations: 6.664 MB / 362.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005563/0.3034, allocations: 4.44 MB / 367.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003334/0.3068, allocations: 2.026 MB / 369.2 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004415/0.3112, allocations: 2.781 MB / 372 MB, free: 6.172 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009401/0.3122, allocations: 328 kB / 372.3 MB, free: 5.852 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002207/0.3144, allocations: 0.6167 MB / 372.9 MB, free: 5.234 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001387/0.3158, allocations: 1.382 MB / 374.3 MB, free: 3.848 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003432/0.3192, allocations: 2.769 MB / 377.1 MB, free: 1.059 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01031/0.3296, allocations: 9.619 MB / 386.7 MB, free: 7.406 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.3296, allocations: 0 / 386.7 MB, free: 7.406 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3296, allocations: 0 / 386.7 MB, free: 7.406 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003199/0.3299, allocations: 0 / 386.7 MB, free: 7.406 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.01455/0.3445, allocations: 5.533 MB / 392.2 MB, free: 1.793 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.3446, allocations: 12.03 kB / 392.2 MB, free: 1.781 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005578/0.3501, allocations: 1.005 MB / 393.3 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006574/0.3567, allocations: 3.279 MB / 396.5 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005232/0.3573, allocations: 398.8 kB / 396.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001865/0.3592, allocations: 0.5076 MB / 397.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01301/0.3722, allocations: 6.787 MB / 404.2 MB, free: 5.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001115/0.3724, allocations: 11.84 kB / 404.2 MB, free: 5.648 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004553/0.3728, allocations: 204 kB / 404.4 MB, free: 5.449 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002265/0.3731, allocations: 246.2 kB / 404.7 MB, free: 5.207 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01121/0.3843, allocations: 5.767 MB / 410.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03537/0.4197, allocations: 21.21 MB / 431.6 MB, free: 9.719 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008436/0.4282, allocations: 8.561 MB / 440.2 MB, free: 212 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003234/0.4315, allocations: 2.132 MB / 442.3 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01027/0.4418, allocations: 5.954 MB / 448.3 MB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.459e-05/0.4418, allocations: 60.55 kB / 448.4 MB, free: 7.906 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 3.987e-06/0.4418, allocations: 0 / 448.4 MB, free: 7.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.2409/0.6828, allocations: 10.41 MB / 458.8 MB, free: 106.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/0.6829, allocations: 79.59 kB / 458.8 MB, free: 106.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006071/0.689, allocations: 2.901 MB / 461.7 MB, free: 105.4 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00047/0.6894, allocations: 62.08 kB / 461.8 MB, free: 105.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001724/0.6912, allocations: 2.352 MB / 464.2 MB, free: 103.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007402/0.6919, allocations: 0.7713 MB / 464.9 MB, free: 103 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002793/0.6922, allocations: 235.5 kB / 465.2 MB, free: 102.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.239e-05/0.6923, allocations: 301.1 kB / 465.5 MB, free: 102.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001791/0.6941, allocations: 1.284 MB / 466.7 MB, free: 102.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002399/0.6965, allocations: 2.193 MB / 468.9 MB, free: 100.6 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004545/0.701, allocations: 3.698 MB / 472.6 MB, free: 98.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.504e-05/0.7011, allocations: 7.844 kB / 472.6 MB, free: 98.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.00742/0.7085, allocations: 4.483 MB / 477.1 MB, free: 96.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.546e-05/0.7086, allocations: 18.97 kB / 477.1 MB, free: 96.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.494e-05/0.7086, allocations: 31.2 kB / 477.2 MB, free: 96.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/0.7097, allocations: 0.5103 MB / 477.7 MB, free: 96.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002317/0.712, allocations: 0.7015 MB / 478.4 MB, free: 96.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006474/0.7185, allocations: 9.332 MB / 487.7 MB, free: 86.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003061/0.7216, allocations: 183.7 kB / 487.9 MB, free: 86.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001917/0.7218, allocations: 124 kB / 488 MB, free: 86.65 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.002871/0.7247, allocations: 1.524 MB / 489.5 MB, free: 85.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007494/0.7254, allocations: 312.2 kB / 489.8 MB, free: 84.81 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00565/0.7311, allocations: 3.906 MB / 493.7 MB, free: 80.8 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.548e-05/0.7311, allocations: 25.97 kB / 493.8 MB, free: 80.78 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.351e-05/0.7311, allocations: 8 kB / 493.8 MB, free: 80.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.029e-05/0.7312, allocations: 15.95 kB / 493.8 MB, free: 80.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01367/0.7448, allocations: 8.512 MB / 0.4905 GB, free: 72.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.054e-05/0.7449, allocations: 4 kB / 0.4905 GB, free: 72.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001506/0.7464, allocations: 391.9 kB / 0.4909 GB, free: 71.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001711/0.7481, allocations: 0.7272 MB / 0.4916 GB, free: 70.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000151/0.7483, allocations: 63.97 kB / 0.4917 GB, free: 70.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01074/0.7591, allocations: 15.22 MB / 0.5065 GB, free: 54.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.7591, allocations: 8 kB / 0.5065 GB, free: 54.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008006/0.7671, allocations: 5.595 MB / 0.512 GB, free: 48.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001955/0.7691, allocations: 0.6605 MB / 0.5127 GB, free: 48.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005908/0.7697, allocations: 63.92 kB / 0.5127 GB, free: 48.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001535/0.7713, allocations: 143.9 kB / 0.5129 GB, free: 48.03 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004305/0.7717, allocations: 169.6 kB / 0.513 GB, free: 47.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/0.7718, allocations: 71.97 kB / 0.5131 GB, free: 47.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00265/0.7745, allocations: 1.96 MB / 0.515 GB, free: 45.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.7745, allocations: 0 / 0.515 GB, free: 45.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003747/0.7783, allocations: 0.9322 MB / 0.5159 GB, free: 44.91 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.0006117/0.7789, allocations: 246.2 kB / 0.5161 GB, free: 44.66 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005626/0.7845, allocations: 3.978 MB / 0.52 GB, free: 40.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.7846, allocations: 4 kB / 0.52 GB, free: 40.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003427/0.788, allocations: 2.668 MB / 0.5226 GB, free: 37.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005987/0.794, allocations: 0.8033 MB / 0.5234 GB, free: 37.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01789/0.8119, allocations: 11.96 MB / 0.5351 GB, free: 25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002916/0.8149, allocations: 3.29 MB / 0.5383 GB, free: 21.67 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0027/0.8176, allocations: 0.7578 MB / 0.5391 GB, free: 20.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006263/0.8182, allocations: 227.4 kB / 0.5393 GB, free: 20.69 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.8183, allocations: 0 / 0.5393 GB, free: 20.69 MB / 382.1 MB Notification: Performance of Templates: time 0.08666/0.9049, allocations: 44.92 MB / 0.5831 GB, free: 7.703 MB / 414.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)