Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001731/0.001731, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.282/1.282, allocations: 226.7 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009426/0.0009426, allocations: 104.6 kB / 296.7 MB, free: 6.461 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008632/0.0008633, allocations: 47.92 kB / 356.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1785/0.1793, allocations: 50.45 MB / 407.1 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.01499/0.1944, allocations: 22.04 MB / 429.1 MB, free: 5.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01112/0.2055, allocations: 6.595 MB / 435.7 MB, free: 15.07 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004106/0.2097, allocations: 131.5 kB / 435.8 MB, free: 14.94 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004096/0.2138, allocations: 1.286 MB / 437.1 MB, free: 13.65 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005147/0.219, allocations: 1.846 MB / 439 MB, free: 11.79 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002426/0.2214, allocations: 1.217 MB / 440.2 MB, free: 10.58 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006493/0.2279, allocations: 7.245 MB / 447.4 MB, free: 3.305 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004759/0.2327, allocations: 4.677 MB / 452.1 MB, free: 14.55 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002767/0.2355, allocations: 2.537 MB / 454.6 MB, free: 12 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003422/0.2389, allocations: 3.362 MB / 458 MB, free: 8.621 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001156/0.2401, allocations: 500 kB / 458.5 MB, free: 8.133 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002266/0.2424, allocations: 0.812 MB / 459.3 MB, free: 7.32 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001632/0.244, allocations: 1.682 MB / 461 MB, free: 5.633 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004511/0.2485, allocations: 3.192 MB / 464.2 MB, free: 2.426 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01203/0.2606, allocations: 10.48 MB / 474.6 MB, free: 7.914 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.059e-05/0.2607, allocations: 4 kB / 474.7 MB, free: 7.91 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2607, allocations: 0 / 474.7 MB, free: 7.91 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003206/0.261, allocations: 0 / 474.7 MB, free: 7.91 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01903/0.28, allocations: 6.94 MB / 481.6 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.2801, allocations: 11.97 kB / 481.6 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005019/0.2851, allocations: 1.075 MB / 482.7 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007767/0.2929, allocations: 3.617 MB / 486.3 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003973/0.2934, allocations: 419 kB / 486.7 MB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001227/0.2946, allocations: 0.5232 MB / 487.2 MB, free: 11.17 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01618/0.3108, allocations: 7.059 MB / 494.3 MB, free: 4.039 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002664/0.3111, allocations: 11.91 kB / 494.3 MB, free: 4.027 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001256/0.3124, allocations: 224 kB / 494.5 MB, free: 3.809 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002904/0.3127, allocations: 262.6 kB / 494.8 MB, free: 3.551 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01249/0.3252, allocations: 5.952 MB / 0.489 GB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1931/0.5183, allocations: 22.59 MB / 0.511 GB, free: 75.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005995/0.5244, allocations: 8.554 MB / 0.5194 GB, free: 69.14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003042/0.5274, allocations: 2.282 MB / 0.5216 GB, free: 68.35 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008821/0.5363, allocations: 6.466 MB / 0.5279 GB, free: 64.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.625e-05/0.5363, allocations: 57 kB / 0.528 GB, free: 64.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=220): time 3.055e-06/0.5363, allocations: 0 / 0.528 GB, free: 64.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=240): time 0.01725/0.5536, allocations: 11.08 MB / 0.5388 GB, free: 58.22 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.018e-05/0.5536, allocations: 79.81 kB / 0.5389 GB, free: 58.15 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003273/0.5569, allocations: 3.163 MB / 0.542 GB, free: 55.99 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001117/0.557, allocations: 65.7 kB / 0.5421 GB, free: 55.92 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001017/0.5581, allocations: 2.513 MB / 0.5445 GB, free: 53.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003884/0.5585, allocations: 0.8227 MB / 0.5453 GB, free: 52.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006853/0.5591, allocations: 0.5575 MB / 0.5459 GB, free: 52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.603e-05/0.5592, allocations: 305.1 kB / 0.5461 GB, free: 51.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00171/0.5609, allocations: 1.334 MB / 0.5474 GB, free: 50.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002029/0.563, allocations: 2.346 MB / 0.5497 GB, free: 47.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003853/0.5668, allocations: 3.917 MB / 0.5536 GB, free: 43.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-05/0.5668, allocations: 8 kB / 0.5536 GB, free: 43.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.005979/0.5728, allocations: 4.729 MB / 0.5582 GB, free: 38.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.571e-05/0.5729, allocations: 16 kB / 0.5582 GB, free: 38.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.63e-05/0.5729, allocations: 36.06 kB / 0.5582 GB, free: 38.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001031/0.5739, allocations: 0.5406 MB / 0.5588 GB, free: 37.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002368/0.5763, allocations: 0.741 MB / 0.5595 GB, free: 36.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006068/0.5824, allocations: 9.589 MB / 0.5689 GB, free: 26.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002318/0.5847, allocations: 191.7 kB / 0.569 GB, free: 26.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001819/0.5849, allocations: 143.9 kB / 0.5692 GB, free: 26.41 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (377): * Single equations (assignments): 370 * 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,12,100.0%), (1,6,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.00202/0.587, allocations: 1.58 MB / 0.5707 GB, free: 24.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004291/0.5874, allocations: 349.5 kB / 0.571 GB, free: 24.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005444/0.5929, allocations: 4.073 MB / 0.575 GB, free: 20.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.5929, allocations: 24 kB / 0.5751 GB, free: 20.28 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/0.5929, allocations: 8 kB / 0.5751 GB, free: 20.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.606e-05/0.5929, allocations: 11.95 kB / 0.5751 GB, free: 20.26 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01105/0.604, allocations: 9.006 MB / 0.5839 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.604, allocations: 4 kB / 0.5839 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001557/0.6056, allocations: 403.4 kB / 0.5843 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001571/0.6071, allocations: 0.7634 MB / 0.585 GB, free: 9.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001415/0.6073, allocations: 67.91 kB / 0.5851 GB, free: 9.863 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01125/0.6185, allocations: 15.48 MB / 0.6002 GB, free: 9.32 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.875e-06/0.6186, allocations: 12.03 kB / 0.6002 GB, free: 9.309 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0556/0.6742, allocations: 42.73 MB / 0.6419 GB, free: 13 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001445/0.6757, allocations: 0.6997 MB / 0.6426 GB, free: 12.27 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003907/0.6761, allocations: 56.12 kB / 0.6427 GB, free: 12.22 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001584/0.6777, allocations: 139.9 kB / 0.6428 GB, free: 12.08 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004589/0.6781, allocations: 181.6 kB / 0.643 GB, free: 11.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001502/0.6783, allocations: 75.97 kB / 0.643 GB, free: 11.83 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002957/0.6813, allocations: 2.131 MB / 0.6451 GB, free: 9.707 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6813, allocations: 0 / 0.6451 GB, free: 9.707 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004991/0.6863, allocations: 1.377 MB / 0.6465 GB, free: 8.336 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],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 (198): * Single equations (assignments): 190 * 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,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007444/0.687, allocations: 276.9 kB / 0.6467 GB, free: 8.062 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006661/0.6937, allocations: 4.148 MB / 0.6508 GB, free: 3.812 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.326e-06/0.6938, allocations: 0 / 0.6508 GB, free: 3.812 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004509/0.6983, allocations: 2.768 MB / 0.6535 GB, free: 0.9453 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005065/0.7034, allocations: 0.9051 MB / 0.6544 GB, free: 52 kB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02478/0.7282, allocations: 15.12 MB / 0.6691 GB, free: 0.7227 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1865/0.9148, allocations: 3.497 MB / 0.6725 GB, free: 143.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003052/0.9179, allocations: 0.8308 MB / 0.6734 GB, free: 143.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008089/0.9187, allocations: 245.5 kB / 0.6736 GB, free: 143.6 MB / 458.7 MB Notification: Performance of SimCode: time 1.012e-06/0.9187, allocations: 0 / 0.6736 GB, free: 143.6 MB / 458.7 MB Notification: Performance of Templates: time 0.08508/1.004, allocations: 58.86 MB / 0.7311 GB, free: 102.3 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches