Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.008702/0.008702, allocations: 102.6 kB / 15.73 MB, free: 6.492 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.001731/0.001731, allocations: 195 kB / 16.68 MB, free: 6.375 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.482/1.482, allocations: 205.1 MB / 222.5 MB, free: 4.496 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.001199/0.001199, allocations: 45.89 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09907/0.1003, allocations: 46.62 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02259/0.1229, allocations: 20.22 MB / 393.4 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01537/0.1384, allocations: 5.955 MB / 399.4 MB, free: 7.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005106/0.1436, allocations: 115.5 kB / 399.5 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005881/0.1495, allocations: 1.393 MB / 400.9 MB, free: 5.504 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009267/0.1588, allocations: 1.98 MB / 402.8 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004427/0.1633, allocations: 1.24 MB / 404.1 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009992/0.1733, allocations: 6.126 MB / 410.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0101/0.1834, allocations: 5.355 MB / 415.6 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006321/0.1898, allocations: 2.843 MB / 418.4 MB, free: 3.824 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006841/0.1966, allocations: 3.39 MB / 421.8 MB, free: 432 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00295/0.1996, allocations: 0.7813 MB / 422.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004247/0.2039, allocations: 1.066 MB / 423.6 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003675/0.2076, allocations: 1.944 MB / 425.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01153/0.2191, allocations: 3.353 MB / 428.9 MB, free: 9.258 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02008/0.2393, allocations: 10.29 MB / 439.2 MB, free: 14.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.2393, allocations: 0 / 439.2 MB, free: 14.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2393, allocations: 0 / 439.2 MB, free: 14.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004083/0.2398, allocations: 0 / 439.2 MB, free: 14.93 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02353/0.2633, allocations: 6.585 MB / 445.8 MB, free: 8.266 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.2634, allocations: 11.97 kB / 445.8 MB, free: 8.254 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005337/0.2688, allocations: 1.009 MB / 446.8 MB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007925/0.2767, allocations: 3.338 MB / 450.2 MB, free: 3.824 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003623/0.2771, allocations: 390.6 kB / 450.6 MB, free: 3.441 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002023/0.2791, allocations: 0.5077 MB / 451.1 MB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2477/0.5268, allocations: 6.769 MB / 457.8 MB, free: 62.99 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001736/0.527, allocations: 8.453 kB / 457.8 MB, free: 62.99 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005921/0.5276, allocations: 206.6 kB / 458.1 MB, free: 62.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002576/0.5279, allocations: 243.8 kB / 458.3 MB, free: 62.81 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01272/0.5406, allocations: 5.746 MB / 464 MB, free: 60.67 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0368/0.5775, allocations: 20.83 MB / 484.9 MB, free: 46.44 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006786/0.5843, allocations: 8.563 MB / 493.4 MB, free: 38.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002975/0.5873, allocations: 2.086 MB / 495.5 MB, free: 37.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009303/0.5967, allocations: 5.916 MB / 0.4897 GB, free: 31.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.5968, allocations: 52.56 kB / 0.4897 GB, free: 31.08 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 4.98e-06/0.5968, allocations: 0 / 0.4897 GB, free: 31.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.01818/0.615, allocations: 10.28 MB / 0.4998 GB, free: 20.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.351e-05/0.615, allocations: 77.41 kB / 0.4998 GB, free: 20.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003783/0.6188, allocations: 2.9 MB / 0.5027 GB, free: 17.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003077/0.6192, allocations: 61.7 kB / 0.5027 GB, free: 17.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001042/0.6202, allocations: 2.357 MB / 0.505 GB, free: 15.15 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005164/0.6207, allocations: 0.7695 MB / 0.5058 GB, free: 14.39 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006581/0.6214, allocations: 0.5099 MB / 0.5063 GB, free: 13.87 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.784e-05/0.6215, allocations: 305.1 kB / 0.5066 GB, free: 13.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001765/0.6232, allocations: 1.267 MB / 0.5078 GB, free: 12.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002066/0.6253, allocations: 2.182 MB / 0.5099 GB, free: 9.715 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003997/0.6293, allocations: 3.665 MB / 0.5135 GB, free: 5.652 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.612e-05/0.6294, allocations: 11.94 kB / 0.5135 GB, free: 5.641 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006487/0.6358, allocations: 4.44 MB / 0.5179 GB, free: 1.133 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.513e-05/0.6359, allocations: 24.06 kB / 0.5179 GB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.741e-05/0.636, allocations: 28 kB / 0.5179 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/0.637, allocations: 0.5099 MB / 0.5184 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00237/0.6394, allocations: 0.6902 MB / 0.5191 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009682/0.6491, allocations: 10.2 MB / 0.529 GB, free: 4.973 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002968/0.6521, allocations: 171.8 kB / 0.5292 GB, free: 4.805 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000305/0.6524, allocations: 131.9 kB / 0.5293 GB, free: 4.676 MB / 398.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.003144/0.6556, allocations: 1.512 MB / 0.5308 GB, free: 3.152 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008354/0.6564, allocations: 324.1 kB / 0.5311 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007251/0.6637, allocations: 3.877 MB / 0.5349 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.926e-05/0.6637, allocations: 20 kB / 0.5349 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.726e-05/0.6638, allocations: 15.78 kB / 0.5349 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.149e-05/0.6638, allocations: 7.969 kB / 0.5349 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01531/0.6791, allocations: 8.467 MB / 0.5432 GB, free: 6.207 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/0.6792, allocations: 4 kB / 0.5432 GB, free: 6.203 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001704/0.6809, allocations: 387.9 kB / 0.5436 GB, free: 5.824 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001932/0.6828, allocations: 0.7232 MB / 0.5443 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001808/0.683, allocations: 63.97 kB / 0.5444 GB, free: 5.016 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0171/0.7001, allocations: 16.61 MB / 0.5606 GB, free: 3.32 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.72e-06/0.7002, allocations: 12.03 kB / 0.5606 GB, free: 3.309 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008939/0.7091, allocations: 5.56 MB / 0.566 GB, free: 13.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001725/0.7109, allocations: 0.6532 MB / 0.5667 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005289/0.7114, allocations: 55.98 kB / 0.5667 GB, free: 12.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00156/0.713, allocations: 131.9 kB / 0.5668 GB, free: 12.74 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004057/0.7134, allocations: 161.6 kB / 0.567 GB, free: 12.58 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001352/0.7135, allocations: 71.97 kB / 0.5671 GB, free: 12.51 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002946/0.7165, allocations: 1.963 MB / 0.569 GB, free: 10.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.8e-07/0.7165, allocations: 4 kB / 0.569 GB, free: 10.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003214/0.7197, allocations: 0.9306 MB / 0.5699 GB, free: 9.621 MB / 446.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.0006327/0.7204, allocations: 255 kB / 0.5701 GB, free: 9.363 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006742/0.7271, allocations: 3.967 MB / 0.574 GB, free: 5.301 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.7272, allocations: 0 / 0.574 GB, free: 5.301 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004357/0.7315, allocations: 2.655 MB / 0.5766 GB, free: 2.551 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004149/0.7357, allocations: 0.8373 MB / 0.5774 GB, free: 1.711 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0181/0.7538, allocations: 9.482 MB / 0.5867 GB, free: 8.176 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0044/0.7583, allocations: 3.297 MB / 0.5899 GB, free: 4.844 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002944/0.7613, allocations: 0.7578 MB / 0.5906 GB, free: 4.082 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007107/0.762, allocations: 227.4 kB / 0.5909 GB, free: 3.859 MB / 462.1 MB Notification: Performance of SimCode: time 7.61e-07/0.762, allocations: 4 kB / 0.5909 GB, free: 3.855 MB / 462.1 MB Notification: Performance of Templates: time 0.2704/1.032, allocations: 45.33 MB / 0.6351 GB, free: 156.1 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)