Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.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_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009119/0.0009118, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005231/0.005231, allocations: 170 kB / 16.26 MB, free: 6.613 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.421/1.421, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0005556/0.0005555, allocations: 16 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2534, allocations: 47.58 MB / 327 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.02255/0.276, allocations: 22.39 MB / 349.4 MB, free: 12.9 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01422/0.2903, allocations: 6.418 MB / 355.8 MB, free: 6.461 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004427/0.2947, allocations: 139.4 kB / 356 MB, free: 6.324 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004786/0.2995, allocations: 1.333 MB / 357.3 MB, free: 4.984 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007516/0.3071, allocations: 1.896 MB / 359.2 MB, free: 3.078 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003976/0.3111, allocations: 1.31 MB / 360.5 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01122/0.3223, allocations: 8.516 MB / 369 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009181/0.3315, allocations: 5.902 MB / 374.9 MB, free: 3.219 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005106/0.3367, allocations: 2.626 MB / 377.6 MB, free: 0.582 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006488/0.3432, allocations: 3.528 MB / 381.1 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001937/0.3452, allocations: 448 kB / 381.5 MB, free: 12.6 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003042/0.3482, allocations: 0.6559 MB / 382.2 MB, free: 11.95 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001785/0.35, allocations: 1.65 MB / 383.8 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006629/0.3567, allocations: 3.675 MB / 387.5 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01471/0.3714, allocations: 13.25 MB / 400.8 MB, free: 9.289 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3715, allocations: 0 / 400.8 MB, free: 9.289 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3715, allocations: 0 / 400.8 MB, free: 9.289 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004303/0.3719, allocations: 0 / 400.8 MB, free: 9.289 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.02109/0.393, allocations: 7.413 MB / 408.2 MB, free: 1.785 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.3931, allocations: 12.03 kB / 408.2 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01025/0.4033, allocations: 1.67 MB / 409.9 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01048/0.4138, allocations: 4.42 MB / 414.3 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005657/0.4144, allocations: 0.5221 MB / 414.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002296/0.4167, allocations: 0.6833 MB / 415.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02332/0.4401, allocations: 9.451 MB / 424.9 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002184/0.4403, allocations: 15.84 kB / 424.9 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001452/0.4418, allocations: 280 kB / 425.2 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003371/0.4421, allocations: 334.2 kB / 425.5 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02036/0.4625, allocations: 8.078 MB / 433.6 MB, free: 8.164 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2917/0.7543, allocations: 28.95 MB / 462.6 MB, free: 90.67 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01367/0.768, allocations: 16.6 MB / 479.2 MB, free: 77.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005278/0.7733, allocations: 2.96 MB / 482.1 MB, free: 77.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0121/0.7854, allocations: 7.763 MB / 489.9 MB, free: 73.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.081e-05/0.7855, allocations: 64.45 kB / 490 MB, free: 73.37 MB / 382.1 MB Notification: Performance of pre-optimization done (n=259): time 3.647e-06/0.7855, allocations: 0 / 490 MB, free: 73.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=265): time 0.02401/0.8095, allocations: 11.12 MB / 0.4893 GB, free: 66.69 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.8096, allocations: 80.84 kB / 0.4894 GB, free: 66.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005374/0.815, allocations: 3.38 MB / 0.4927 GB, free: 64.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004441/0.8155, allocations: 69.58 kB / 0.4928 GB, free: 64.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001754/0.8172, allocations: 3.033 MB / 0.4957 GB, free: 62.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008502/0.8181, allocations: 0.9177 MB / 0.4966 GB, free: 61.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003079/0.8184, allocations: 268.9 kB / 0.4969 GB, free: 60.87 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.961e-05/0.8185, allocations: 305.1 kB / 0.4972 GB, free: 60.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001951/0.8204, allocations: 1.408 MB / 0.4986 GB, free: 59.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002268/0.8227, allocations: 2.45 MB / 0.5009 GB, free: 56.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004295/0.827, allocations: 4.109 MB / 0.505 GB, free: 51.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.395e-05/0.827, allocations: 8 kB / 0.505 GB, free: 51.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.006559/0.8336, allocations: 4.731 MB / 0.5096 GB, free: 46.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.825e-05/0.8337, allocations: 21.34 kB / 0.5096 GB, free: 46.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.956e-05/0.8337, allocations: 35.94 kB / 0.5096 GB, free: 46.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008792/0.8346, allocations: 399.7 kB / 0.51 GB, free: 46.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002678/0.8373, allocations: 0.7973 MB / 0.5108 GB, free: 45.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00496/0.8423, allocations: 7.358 MB / 0.518 GB, free: 37.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003719/0.846, allocations: 163.8 kB / 0.5181 GB, free: 37.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005619/0.8466, allocations: 148 kB / 0.5183 GB, free: 37.39 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * 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 (411): * Single equations (assignments): 405 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * 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): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (3,14,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004111/0.8507, allocations: 2.074 MB / 0.5203 GB, free: 35.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000927/0.8516, allocations: 371.5 kB / 0.5207 GB, free: 34.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006492/0.8581, allocations: 4.248 MB / 0.5248 GB, free: 30.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.071e-05/0.8582, allocations: 28 kB / 0.5248 GB, free: 30.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.998e-05/0.8582, allocations: 12 kB / 0.5249 GB, free: 30.53 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.426e-05/0.8582, allocations: 11.95 kB / 0.5249 GB, free: 30.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01469/0.8729, allocations: 9.906 MB / 0.5345 GB, free: 20.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/0.873, allocations: 7.938 kB / 0.5345 GB, free: 20.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001604/0.8746, allocations: 411.8 kB / 0.5349 GB, free: 20.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002034/0.8766, allocations: 0.8558 MB / 0.5358 GB, free: 19.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002021/0.8769, allocations: 71.97 kB / 0.5358 GB, free: 19.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0132/0.8901, allocations: 16.09 MB / 0.5516 GB, free: 2.102 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.8901, allocations: 4 kB / 0.5516 GB, free: 2.098 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01013/0.9002, allocations: 6.08 MB / 0.5575 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002139/0.9024, allocations: 0.7386 MB / 0.5582 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00063/0.9031, allocations: 67.98 kB / 0.5583 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001679/0.9047, allocations: 143.9 kB / 0.5584 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005424/0.9053, allocations: 205.6 kB / 0.5586 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001527/0.9055, allocations: 75.98 kB / 0.5587 GB, free: 10.57 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003745/0.9092, allocations: 2.294 MB / 0.5609 GB, free: 8.289 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.9092, allocations: 0 / 0.5609 GB, free: 8.289 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004638/0.9139, allocations: 1.137 MB / 0.562 GB, free: 7.152 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 14 (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,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.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 (198): * Single equations (assignments): 191 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,5,100.0%), (4,33,93.8%), (1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,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.0006182/0.9145, allocations: 214.3 kB / 0.5622 GB, free: 6.938 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006941/0.9215, allocations: 4.152 MB / 0.5663 GB, free: 2.668 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.766e-06/0.9215, allocations: 8.062 kB / 0.5663 GB, free: 2.66 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004531/0.926, allocations: 2.861 MB / 0.5691 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006115/0.9322, allocations: 0.9445 MB / 0.57 GB, free: 14.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02673/0.9589, allocations: 15.26 MB / 0.5849 GB, free: 15.41 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006211/0.9652, allocations: 4.217 MB / 0.589 GB, free: 11.17 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003699/0.9689, allocations: 0.8365 MB / 0.5899 GB, free: 10.32 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007647/0.9697, allocations: 251.4 kB / 0.5901 GB, free: 10.08 MB / 430.1 MB Notification: Performance of SimCode: time 1.343e-06/0.9697, allocations: 0 / 0.5901 GB, free: 10.08 MB / 430.1 MB Notification: Performance of Templates: time 0.2745/1.244, allocations: 52.81 MB / 0.6417 GB, free: 136.9 MB / 446.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1)