Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_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.001048/0.001048, allocations: 110.6 kB / 18.4 MB, free: 4.699 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.001023/0.001023, allocations: 190.1 kB / 19.34 MB, free: 3.777 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.23/1.23, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.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.001157/0.001157, allocations: 55.91 kB / 329.2 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06915/0.07031, allocations: 46.6 MB / 375.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.1594/0.2298, allocations: 20.23 MB / 396.1 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01085/0.2407, allocations: 5.937 MB / 402 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002855/0.2436, allocations: 124.6 kB / 402.1 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003293/0.2469, allocations: 1.343 MB / 403.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005553/0.2525, allocations: 1.905 MB / 405.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003066/0.2555, allocations: 1.25 MB / 406.6 MB, free: 9.695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00697/0.2625, allocations: 6.114 MB / 412.7 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005532/0.2681, allocations: 5.366 MB / 418.1 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003462/0.2716, allocations: 2.839 MB / 420.9 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003455/0.275, allocations: 3.391 MB / 424.3 MB, free: 15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008834/0.2759, allocations: 0.7812 MB / 425.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001763/0.2777, allocations: 1.074 MB / 426.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001496/0.2792, allocations: 1.94 MB / 428.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002913/0.2821, allocations: 3.349 MB / 431.5 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008265/0.2904, allocations: 10.3 MB / 441.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.2904, allocations: 4 kB / 441.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2904, allocations: 0 / 441.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.316e-05/0.2905, allocations: 0 / 441.8 MB, free: 13.5 MB / 366.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.01278/0.3033, allocations: 6.59 MB / 448.4 MB, free: 6.828 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.3033, allocations: 8.031 kB / 448.4 MB, free: 6.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004316/0.3077, allocations: 1.009 MB / 449.4 MB, free: 5.805 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004969/0.3127, allocations: 3.341 MB / 452.7 MB, free: 2.387 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002724/0.3129, allocations: 386.6 kB / 453.1 MB, free: 2.008 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007017/0.3136, allocations: 0.5041 MB / 453.6 MB, free: 1.504 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0101/0.3238, allocations: 6.775 MB / 460.4 MB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001132/0.3239, allocations: 11.91 kB / 460.4 MB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000457/0.3243, allocations: 208 kB / 460.6 MB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002177/0.3246, allocations: 250.1 kB / 460.8 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008972/0.3336, allocations: 5.736 MB / 466.6 MB, free: 4.453 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02701/0.3606, allocations: 20.82 MB / 487.4 MB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007818/0.3684, allocations: 8.55 MB / 496 MB, free: 5.625 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003033/0.3715, allocations: 2.093 MB / 498 MB, free: 3.527 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009016/0.3805, allocations: 5.911 MB / 0.4921 GB, free: 13.48 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.702e-05/0.3805, allocations: 60.56 kB / 0.4922 GB, free: 13.41 MB / 430.1 MB Notification: Performance of pre-optimization done (n=205): time 7.063e-06/0.3806, allocations: 3.984 kB / 0.4922 GB, free: 13.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=222): time 0.01907/0.3996, allocations: 10.27 MB / 0.5022 GB, free: 2.898 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.788e-05/0.3997, allocations: 77.34 kB / 0.5023 GB, free: 2.812 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003605/0.4033, allocations: 2.908 MB / 0.5052 GB, free: 15.89 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001344/0.4035, allocations: 65.7 kB / 0.5052 GB, free: 15.82 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001512/0.405, allocations: 2.361 MB / 0.5075 GB, free: 13.44 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005538/0.4055, allocations: 0.7586 MB / 0.5083 GB, free: 12.67 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007699/0.4063, allocations: 0.5138 MB / 0.5088 GB, free: 12.14 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.757e-05/0.4064, allocations: 301.1 kB / 0.5091 GB, free: 11.85 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002058/0.4085, allocations: 1.275 MB / 0.5103 GB, free: 10.57 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002647/0.4111, allocations: 2.175 MB / 0.5124 GB, free: 7.992 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004895/0.416, allocations: 3.668 MB / 0.516 GB, free: 3.926 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-05/0.4161, allocations: 12 kB / 0.516 GB, free: 3.914 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006858/0.4229, allocations: 4.446 MB / 0.5204 GB, free: 15.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.423, allocations: 16 kB / 0.5204 GB, free: 15.38 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.858e-05/0.423, allocations: 28 kB / 0.5204 GB, free: 15.36 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001158/0.4242, allocations: 0.5175 MB / 0.5209 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002593/0.4268, allocations: 0.698 MB / 0.5216 GB, free: 14.12 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008716/0.4355, allocations: 10.18 MB / 0.5315 GB, free: 3.238 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001848/0.4374, allocations: 171.8 kB / 0.5317 GB, free: 3.07 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002014/0.4376, allocations: 128 kB / 0.5318 GB, free: 2.945 MB / 462.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.002147/0.4397, allocations: 1.524 MB / 0.5333 GB, free: 1.41 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004458/0.4402, allocations: 316.1 kB / 0.5336 GB, free: 1.098 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006425/0.4466, allocations: 3.871 MB / 0.5374 GB, free: 13.13 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.163e-05/0.4466, allocations: 15.98 kB / 0.5374 GB, free: 13.11 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.4467, allocations: 3.984 kB / 0.5374 GB, free: 13.11 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001006/0.4477, allocations: 0.6493 MB / 0.538 GB, free: 12.44 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003627/0.448, allocations: 51.98 kB / 0.5381 GB, free: 12.39 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001476/0.4495, allocations: 139.8 kB / 0.5382 GB, free: 12.25 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003255/0.4499, allocations: 173.7 kB / 0.5384 GB, free: 12.08 MB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.007569/0.4574, allocations: 3.663 MB / 0.542 GB, free: 8.383 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.006637/0.4641, allocations: 4.554 MB / 0.5464 GB, free: 3.812 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00186/0.466, allocations: 1.304 MB / 0.5477 GB, free: 2.508 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0026/0.4686, allocations: 1.963 MB / 0.5496 GB, free: 0.5469 MB / 478.1 MB Notification: Performance of Backend: time 2.21e-07/0.4686, allocations: 0 / 0.5496 GB, free: 0.5469 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.1401/0.6087, allocations: 3.129 MB / 0.5527 GB, free: 151.2 MB / 478.1 MB Notification: Performance of SimCode: time 0.01343/0.6221, allocations: 9.745 MB / 0.5622 GB, free: 147 MB / 478.1 MB Notification: Performance of Templates: time 0.06845/0.6906, allocations: 51.66 MB / 0.6126 GB, free: 110 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)