Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001047/0.001047, allocations: 103.2 kB / 16.62 MB, free: 6.805 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.001052/0.001052, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.318/1.318, allocations: 205.1 MB / 223.4 MB, free: 12.36 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.001227/0.001228, allocations: 47.92 kB / 279.5 MB, free: 3.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08672/0.08796, allocations: 46.63 MB / 326.1 MB, free: 4.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02108/0.1091, allocations: 19.96 MB / 346.1 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01098/0.1201, allocations: 5.846 MB / 351.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003791/0.124, allocations: 115.5 kB / 352.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004426/0.1285, allocations: 1.154 MB / 353.2 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00737/0.1359, allocations: 1.714 MB / 354.9 MB, free: 7.852 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004374/0.1403, allocations: 1.127 MB / 356.1 MB, free: 6.723 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008875/0.1492, allocations: 6.208 MB / 362.3 MB, free: 500 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0076/0.1568, allocations: 5.363 MB / 367.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004265/0.1611, allocations: 2.745 MB / 370.4 MB, free: 8.285 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005671/0.1668, allocations: 3.402 MB / 373.8 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002537/0.1694, allocations: 0.7852 MB / 374.6 MB, free: 4.086 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003801/0.1732, allocations: 1.074 MB / 375.6 MB, free: 3.012 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002996/0.1763, allocations: 1.932 MB / 377.6 MB, free: 1.074 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1577/0.334, allocations: 3.342 MB / 380.9 MB, free: 21.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01226/0.3463, allocations: 10.18 MB / 391.1 MB, free: 21.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3463, allocations: 0 / 391.1 MB, free: 21.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.544e-06/0.3464, allocations: 0 / 391.1 MB, free: 21.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002728/0.3466, allocations: 3.812 kB / 391.1 MB, free: 21.07 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.0187/0.3653, allocations: 6.579 MB / 397.7 MB, free: 18.14 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.3654, allocations: 10.56 kB / 397.7 MB, free: 18.14 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004913/0.3703, allocations: 1.011 MB / 398.7 MB, free: 17.7 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006222/0.3766, allocations: 3.275 MB / 402 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002944/0.3769, allocations: 398.5 kB / 402.4 MB, free: 15.79 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009925/0.3779, allocations: 0.4969 MB / 402.9 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01258/0.3905, allocations: 6.777 MB / 409.6 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001244/0.3906, allocations: 11.75 kB / 409.6 MB, free: 11.67 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005264/0.3912, allocations: 210.7 kB / 409.8 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001937/0.3914, allocations: 243.8 kB / 410.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009379/0.4007, allocations: 5.736 MB / 415.8 MB, free: 8.496 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03396/0.4347, allocations: 21.1 MB / 436.9 MB, free: 4.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008166/0.4429, allocations: 8.541 MB / 445.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003194/0.4462, allocations: 2.116 MB / 447.6 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01103/0.4572, allocations: 5.931 MB / 453.5 MB, free: 2.656 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.721e-05/0.4573, allocations: 56.56 kB / 453.6 MB, free: 2.594 MB / 350.1 MB Notification: Performance of pre-optimization done (n=205): time 4.438e-06/0.4573, allocations: 0 / 453.6 MB, free: 2.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=222): time 0.01983/0.4772, allocations: 10.27 MB / 463.8 MB, free: 8.141 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.501e-05/0.4772, allocations: 84.88 kB / 463.9 MB, free: 8.047 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004362/0.4816, allocations: 2.9 MB / 466.8 MB, free: 5.137 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004018/0.482, allocations: 69.7 kB / 466.9 MB, free: 5.062 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001565/0.4836, allocations: 2.348 MB / 469.2 MB, free: 2.699 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001017/0.4846, allocations: 0.7675 MB / 470 MB, free: 1.938 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008723/0.4855, allocations: 0.5099 MB / 470.5 MB, free: 1.418 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.4857, allocations: 309.1 kB / 470.8 MB, free: 1.113 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00206/0.4877, allocations: 1.267 MB / 472.1 MB, free: 15.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002568/0.4903, allocations: 2.175 MB / 474.3 MB, free: 13.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004788/0.4951, allocations: 3.671 MB / 477.9 MB, free: 9.332 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.802e-05/0.4951, allocations: 10.62 kB / 477.9 MB, free: 9.324 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007638/0.5028, allocations: 4.441 MB / 482.4 MB, free: 4.996 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.333e-05/0.5029, allocations: 20 kB / 482.4 MB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.947e-05/0.5029, allocations: 31.98 kB / 482.4 MB, free: 4.945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001301/0.5042, allocations: 0.5106 MB / 482.9 MB, free: 4.418 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002609/0.5068, allocations: 0.6943 MB / 483.6 MB, free: 3.766 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/0.5173, allocations: 10.2 MB / 493.8 MB, free: 8.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004021/0.5214, allocations: 175.7 kB / 494 MB, free: 8.762 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008778/0.5223, allocations: 124 kB / 494.1 MB, free: 8.641 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.005156/0.5275, allocations: 1.525 MB / 495.7 MB, free: 7.148 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00109/0.5286, allocations: 316.2 kB / 496 MB, free: 6.836 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006857/0.5355, allocations: 3.872 MB / 499.8 MB, free: 2.898 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.778e-05/0.5355, allocations: 20 kB / 499.9 MB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.609e-05/0.5355, allocations: 11.98 kB / 499.9 MB, free: 2.867 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.191e-05/0.5356, allocations: 11.91 kB / 499.9 MB, free: 2.855 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01665/0.5522, allocations: 8.497 MB / 0.4965 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.165e-05/0.5523, allocations: 4 kB / 0.4965 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001628/0.5539, allocations: 381.5 kB / 0.4968 GB, free: 9.922 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001895/0.5558, allocations: 0.7245 MB / 0.4975 GB, free: 9.176 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001843/0.556, allocations: 63.98 kB / 0.4976 GB, free: 9.113 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01528/0.5713, allocations: 16.62 MB / 0.5138 GB, free: 7.461 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.5714, allocations: 6.906 kB / 0.5138 GB, free: 7.457 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009656/0.581, allocations: 5.546 MB / 0.5193 GB, free: 1.801 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002454/0.5835, allocations: 0.6609 MB / 0.5199 GB, free: 1.117 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008893/0.5844, allocations: 52.17 kB / 0.5199 GB, free: 1.066 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001821/0.5863, allocations: 127.9 kB / 0.5201 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004884/0.5868, allocations: 175.5 kB / 0.5202 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001515/0.5869, allocations: 71.97 kB / 0.5203 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003409/0.5904, allocations: 1.963 MB / 0.5222 GB, free: 14.74 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5904, allocations: 0 / 0.5222 GB, free: 14.74 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005213/0.5956, allocations: 0.9258 MB / 0.5231 GB, free: 13.82 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.0008378/0.5964, allocations: 257.5 kB / 0.5234 GB, free: 13.58 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01181/0.6083, allocations: 5.396 MB / 0.5286 GB, free: 8.195 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.392e-05/0.6083, allocations: 4 kB / 0.5286 GB, free: 8.191 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004389/0.6127, allocations: 2.649 MB / 0.5312 GB, free: 5.492 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005037/0.6178, allocations: 0.853 MB / 0.5321 GB, free: 4.641 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2031/0.8209, allocations: 11.74 MB / 0.5435 GB, free: 156.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003454/0.8244, allocations: 3.292 MB / 0.5467 GB, free: 155.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002826/0.8273, allocations: 0.7583 MB / 0.5475 GB, free: 155.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006485/0.8279, allocations: 223.1 kB / 0.5477 GB, free: 155.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.914e-06/0.828, allocations: 0 / 0.5477 GB, free: 155.6 MB / 446.1 MB Notification: Performance of Templates: time 0.07761/0.9056, allocations: 47.25 MB / 0.5938 GB, free: 118.9 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)