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.001514/0.001514, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002048/0.002048, allocations: 198 kB / 16.54 MB, free: 6.672 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.67/1.67, allocations: 205.1 MB / 222.4 MB, free: 4.617 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.001851/0.001851, allocations: 59.91 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.2432, allocations: 46.63 MB / 325.3 MB, free: 1.836 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02203/0.2653, allocations: 20.22 MB / 345.5 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01481/0.2802, allocations: 5.959 MB / 351.5 MB, free: 9.648 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005991/0.2863, allocations: 119.5 kB / 351.6 MB, free: 9.531 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00541/0.2918, allocations: 1.335 MB / 352.9 MB, free: 8.188 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009714/0.3015, allocations: 1.914 MB / 354.9 MB, free: 6.262 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005077/0.3066, allocations: 1.236 MB / 356.1 MB, free: 5.023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.009891/0.3165, allocations: 6.099 MB / 362.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008744/0.3253, allocations: 5.363 MB / 367.6 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004789/0.3301, allocations: 2.815 MB / 370.4 MB, free: 6.625 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005676/0.3358, allocations: 3.386 MB / 373.8 MB, free: 3.227 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002348/0.3382, allocations: 0.7812 MB / 374.5 MB, free: 2.445 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00425/0.3425, allocations: 1.07 MB / 375.6 MB, free: 1.375 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003072/0.3456, allocations: 1.936 MB / 377.5 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00678/0.3524, allocations: 3.357 MB / 380.9 MB, free: 12.06 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01414/0.3665, allocations: 10.2 MB / 391.1 MB, free: 1.828 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.874e-06/0.3666, allocations: 4 kB / 391.1 MB, free: 1.824 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3666, allocations: 0 / 391.1 MB, free: 1.824 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003984/0.367, allocations: 0 / 391.1 MB, free: 1.824 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.02163/0.3886, allocations: 6.586 MB / 397.7 MB, free: 11.15 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.3887, allocations: 8.031 kB / 397.7 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006006/0.3947, allocations: 1.009 MB / 398.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008823/0.4036, allocations: 3.31 MB / 402 MB, free: 6.742 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006429/0.4043, allocations: 394.8 kB / 402.4 MB, free: 6.355 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00271/0.407, allocations: 0.5037 MB / 402.9 MB, free: 5.852 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01933/0.4264, allocations: 6.771 MB / 409.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002291/0.4266, allocations: 7.906 kB / 409.7 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001329/0.428, allocations: 204 kB / 409.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002767/0.4283, allocations: 250.1 kB / 410.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0133/0.4416, allocations: 5.74 MB / 415.9 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04484/0.4865, allocations: 21.09 MB / 437 MB, free: 3.219 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01003/0.4965, allocations: 8.55 MB / 445.5 MB, free: 9.715 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004008/0.5006, allocations: 2.12 MB / 447.6 MB, free: 7.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01293/0.5135, allocations: 5.934 MB / 453.6 MB, free: 1.516 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.395e-05/0.5136, allocations: 60.55 kB / 453.6 MB, free: 1.449 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 5.35e-06/0.5137, allocations: 4 kB / 453.6 MB, free: 1.445 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.2132/0.7269, allocations: 10.26 MB / 463.9 MB, free: 105.6 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.602e-05/0.727, allocations: 73.16 kB / 464 MB, free: 105.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005873/0.7329, allocations: 2.904 MB / 466.9 MB, free: 104.4 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000457/0.7334, allocations: 62.02 kB / 466.9 MB, free: 104.4 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001859/0.7352, allocations: 2.353 MB / 469.3 MB, free: 102.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009081/0.7362, allocations: 0.7726 MB / 470 MB, free: 102 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001258/0.7374, allocations: 0.5141 MB / 470.6 MB, free: 101.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.16e-05/0.7375, allocations: 301.1 kB / 470.9 MB, free: 101.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002157/0.7397, allocations: 1.273 MB / 472.1 MB, free: 101 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002444/0.7421, allocations: 2.177 MB / 474.3 MB, free: 99.35 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004655/0.7468, allocations: 3.663 MB / 478 MB, free: 96.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.19e-05/0.7468, allocations: 11.81 kB / 478 MB, free: 96.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007558/0.7544, allocations: 4.445 MB / 482.4 MB, free: 93.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.666e-05/0.7545, allocations: 16 kB / 482.4 MB, free: 93.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.095e-05/0.7545, allocations: 32 kB / 482.5 MB, free: 93.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00112/0.7557, allocations: 0.5099 MB / 483 MB, free: 92.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002322/0.758, allocations: 0.6912 MB / 483.7 MB, free: 92.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007103/0.7651, allocations: 10.19 MB / 493.9 MB, free: 81.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00323/0.7684, allocations: 178.8 kB / 494 MB, free: 81.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000462/0.7689, allocations: 132 kB / 494.2 MB, free: 81 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.003676/0.7726, allocations: 1.516 MB / 495.7 MB, free: 79.47 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001193/0.7738, allocations: 320.1 kB / 496 MB, free: 79.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006743/0.7805, allocations: 3.875 MB / 499.9 MB, free: 75.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.434e-05/0.7806, allocations: 20 kB / 499.9 MB, free: 75.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.474e-05/0.7806, allocations: 8 kB / 499.9 MB, free: 75.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.309e-05/0.7806, allocations: 7.969 kB / 499.9 MB, free: 75.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01696/0.7976, allocations: 8.497 MB / 0.4965 GB, free: 66.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.465e-05/0.7977, allocations: 10.16 kB / 0.4965 GB, free: 66.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001627/0.7993, allocations: 383.4 kB / 0.4969 GB, free: 66.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001745/0.8011, allocations: 0.7235 MB / 0.4976 GB, free: 65.39 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002263/0.8013, allocations: 67.91 kB / 0.4976 GB, free: 65.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01217/0.8135, allocations: 16.63 MB / 0.5139 GB, free: 47.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.8135, allocations: 4 kB / 0.5139 GB, free: 47.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009234/0.8228, allocations: 5.535 MB / 0.5193 GB, free: 41.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00207/0.8249, allocations: 0.6494 MB / 0.5199 GB, free: 41.26 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001313/0.8262, allocations: 60.05 kB / 0.52 GB, free: 41.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002222/0.8285, allocations: 139.9 kB / 0.5201 GB, free: 41.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000461/0.8289, allocations: 165.6 kB / 0.5203 GB, free: 40.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001871/0.8291, allocations: 71.97 kB / 0.5203 GB, free: 40.83 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003816/0.833, allocations: 1.963 MB / 0.5223 GB, free: 38.87 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.833, allocations: 0 / 0.5223 GB, free: 38.87 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004823/0.8378, allocations: 0.9336 MB / 0.5232 GB, free: 37.94 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.0007715/0.8386, allocations: 255.7 kB / 0.5234 GB, free: 37.69 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01026/0.8489, allocations: 5.404 MB / 0.5287 GB, free: 32.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.127e-05/0.8489, allocations: 3.938 kB / 0.5287 GB, free: 32.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004067/0.853, allocations: 2.652 MB / 0.5313 GB, free: 29.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005435/0.8585, allocations: 0.8417 MB / 0.5321 GB, free: 28.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01919/0.8777, allocations: 9.593 MB / 0.5415 GB, free: 18.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00466/0.8824, allocations: 3.298 MB / 0.5447 GB, free: 15.6 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003059/0.8855, allocations: 0.7578 MB / 0.5454 GB, free: 14.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000992/0.8865, allocations: 223.4 kB / 0.5456 GB, free: 14.62 MB / 382.1 MB Notification: Performance of SimCode: time 1.103e-06/0.8865, allocations: 0 / 0.5456 GB, free: 14.62 MB / 382.1 MB Notification: Performance of Templates: time 0.08722/0.9738, allocations: 47.32 MB / 0.5919 GB, free: 15.25 MB / 430.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)