Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00136/0.00136, allocations: 111 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001288/0.001288, allocations: 211.9 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 59.89 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.2471, allocations: 50.55 MB / 410 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01187/0.259, allocations: 10.35 MB / 420.3 MB, free: 7.195 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005444/0.2645, allocations: 3.481 MB / 423.8 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007348/0.2652, allocations: 55.75 kB / 423.8 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001478/0.2667, allocations: 0.7724 MB / 424.6 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001731/0.2685, allocations: 0.8462 MB / 425.5 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007841/0.2693, allocations: 415.4 kB / 425.9 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002472/0.2718, allocations: 2.767 MB / 428.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002459/0.2742, allocations: 2.398 MB / 431 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0014/0.2756, allocations: 1.269 MB / 432.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001698/0.2774, allocations: 1.584 MB / 433.9 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000414/0.2778, allocations: 332 kB / 434.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007356/0.2785, allocations: 443.8 kB / 434.6 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008201/0.2794, allocations: 0.9388 MB / 435.6 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001308/0.2807, allocations: 1.513 MB / 437.1 MB, free: 6.281 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003689/0.2844, allocations: 4.39 MB / 441.5 MB, free: 1.879 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.2844, allocations: 3.938 kB / 441.5 MB, free: 1.875 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2844, allocations: 4 kB / 441.5 MB, free: 1.871 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.618e-05/0.2844, allocations: 0 / 441.5 MB, free: 1.871 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.005436/0.2899, allocations: 3.073 MB / 444.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.2899, allocations: 8.031 kB / 444.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008159/0.2908, allocations: 313.5 kB / 444.9 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002618/0.2934, allocations: 1.626 MB / 446.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001272/0.2935, allocations: 176.4 kB / 446.7 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003137/0.2938, allocations: 223.9 kB / 446.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004466/0.2983, allocations: 2.913 MB / 449.8 MB, free: 9.34 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.85e-05/0.2984, allocations: 11.89 kB / 449.8 MB, free: 9.328 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002042/0.2986, allocations: 88 kB / 449.9 MB, free: 9.242 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001211/0.2987, allocations: 116.3 kB / 450 MB, free: 9.125 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003959/0.3027, allocations: 2.43 MB / 452.4 MB, free: 6.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01298/0.3157, allocations: 9.008 MB / 461.4 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002299/0.318, allocations: 1.705 MB / 463.2 MB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001729/0.3198, allocations: 0.9807 MB / 464.1 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002851/0.3201, allocations: 207.2 kB / 464.3 MB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.013e-05/0.3201, allocations: 43.56 kB / 464.4 MB, free: 10.3 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.426e-06/0.3201, allocations: 0 / 464.4 MB, free: 10.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01386/0.334, allocations: 6.566 MB / 470.9 MB, free: 3.562 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/0.3341, allocations: 72.39 kB / 471 MB, free: 3.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00217/0.3362, allocations: 1.566 MB / 472.6 MB, free: 1.906 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.054e-05/0.3363, allocations: 45.7 kB / 472.6 MB, free: 1.855 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007573/0.3371, allocations: 1.104 MB / 473.7 MB, free: 0.7344 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003275/0.3374, allocations: 437.8 kB / 474.2 MB, free: 308 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004063/0.3379, allocations: 279.3 kB / 474.4 MB, free: 20 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.338, allocations: 301.1 kB / 474.7 MB, free: 15.72 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001164/0.3391, allocations: 0.7144 MB / 475.4 MB, free: 15.01 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001459/0.3406, allocations: 1.138 MB / 476.6 MB, free: 13.69 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002728/0.3433, allocations: 1.967 MB / 478.5 MB, free: 11.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.3434, allocations: 8 kB / 478.6 MB, free: 11.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004204/0.3476, allocations: 2.514 MB / 481.1 MB, free: 8.977 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.3476, allocations: 16.22 kB / 481.1 MB, free: 8.961 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.724e-05/0.3476, allocations: 16 kB / 481.1 MB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009788/0.3486, allocations: 426.6 kB / 481.5 MB, free: 8.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001311/0.35, allocations: 355.4 kB / 481.9 MB, free: 8.172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007011/0.357, allocations: 7.112 MB / 489 MB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001482/0.3585, allocations: 107.8 kB / 489.1 MB, free: 0.5391 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.3586, allocations: 67.98 kB / 489.1 MB, free: 484 kB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001193/0.3598, allocations: 0.7159 MB / 489.9 MB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002788/0.3601, allocations: 169.9 kB / 490 MB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003654/0.3638, allocations: 2.198 MB / 492.2 MB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/0.3638, allocations: 12.06 kB / 492.2 MB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.3638, allocations: 7.984 kB / 492.2 MB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007635/0.3646, allocations: 398.7 kB / 492.6 MB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002045/0.3648, allocations: 31.98 kB / 492.7 MB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008615/0.3656, allocations: 87.89 kB / 492.7 MB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001873/0.3658, allocations: 93.16 kB / 492.8 MB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004333/0.3702, allocations: 2.197 MB / 495 MB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003904/0.3741, allocations: 2.716 MB / 497.8 MB, free: 7.746 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001083/0.3752, allocations: 0.7636 MB / 498.5 MB, free: 6.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001584/0.3768, allocations: 1.071 MB / 499.6 MB, free: 5.914 MB / 414.1 MB Notification: Performance of Backend: time 4.61e-07/0.3768, allocations: 0 / 499.6 MB, free: 5.914 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003332/0.3801, allocations: 1.825 MB / 0.4897 GB, free: 4.02 MB / 414.1 MB Notification: Performance of SimCode: time 0.007596/0.3877, allocations: 4.996 MB / 0.4945 GB, free: 14.98 MB / 430.1 MB Notification: Performance of Templates: time 0.04867/0.4364, allocations: 28.57 MB / 0.5224 GB, free: 2.656 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1)