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.001152/0.001151, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000958/0.0009581, allocations: 102 kB / 286.7 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.73e-05/1.723e-05, allocations: 4 kB / 343.7 MB, free: 8.281 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1081, allocations: 51.48 MB / 395.2 MB, free: 4.762 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4962/0.6043, allocations: 131.9 MB / 0.5147 GB, free: 10.24 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/0.6047, allocations: 87.89 kB / 0.5148 GB, free: 10.2 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.576/1.181, allocations: 126.1 MB / 0.6379 GB, free: 74.96 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.252e-06/1.181, allocations: 0 / 0.6379 GB, free: 74.96 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005414/1.181, allocations: 139.4 kB / 0.638 GB, free: 74.93 MB / 442.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.01665/1.198, allocations: 5.148 MB / 0.643 GB, free: 72.52 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/1.198, allocations: 7.75 kB / 0.643 GB, free: 72.52 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006905/1.205, allocations: 1.017 MB / 0.644 GB, free: 72.14 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01447/1.219, allocations: 4.623 MB / 0.6486 GB, free: 69.85 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002946/1.22, allocations: 174.6 kB / 0.6487 GB, free: 69.85 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002141/1.222, allocations: 326.7 kB / 0.649 GB, free: 69.84 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0128/1.235, allocations: 5.091 MB / 0.654 GB, free: 67.67 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0139/1.249, allocations: 6.051 MB / 0.6599 GB, free: 64.95 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001518/1.249, allocations: 7.312 kB / 0.6599 GB, free: 64.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000498/1.249, allocations: 3.656 kB / 0.6599 GB, free: 64.95 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002186/1.25, allocations: 251 kB / 0.6602 GB, free: 64.93 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03332/1.283, allocations: 21.66 MB / 0.6813 GB, free: 53 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00607/1.289, allocations: 8.46 MB / 0.6896 GB, free: 45.73 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002397/1.291, allocations: 2.027 MB / 0.6916 GB, free: 44.96 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009856/1.301, allocations: 6.42 MB / 0.6978 GB, free: 41.14 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/1.301, allocations: 56.56 kB / 0.6979 GB, free: 41.08 MB / 442.7 MB Notification: Performance of pre-optimization done (n=231): time 5.32e-06/1.301, allocations: 0 / 0.6979 GB, free: 41.08 MB / 442.7 MB Notification: Performance of matching and sorting (n=258): time 0.0161/1.318, allocations: 8.94 MB / 0.7066 GB, free: 32.49 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.201e-05/1.318, allocations: 81.44 kB / 0.7067 GB, free: 32.39 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003058/1.321, allocations: 2.211 MB / 0.7089 GB, free: 30.18 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001522/1.321, allocations: 25.7 kB / 0.7089 GB, free: 30.14 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001079/1.322, allocations: 2.504 MB / 0.7113 GB, free: 27.61 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000471/1.322, allocations: 0.8468 MB / 0.7121 GB, free: 26.75 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/1.323, allocations: 0 / 0.7121 GB, free: 26.75 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001362/1.323, allocations: 432.9 kB / 0.7126 GB, free: 26.32 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001459/1.324, allocations: 1.272 MB / 0.7138 GB, free: 25.05 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001831/1.326, allocations: 2.22 MB / 0.716 GB, free: 22.4 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002917/1.329, allocations: 1.909 MB / 0.7178 GB, free: 20.47 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-05/1.329, allocations: 8 kB / 0.7178 GB, free: 20.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=419) (initialization): time 0.007285/1.336, allocations: 4.648 MB / 0.7224 GB, free: 15.73 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.144e-05/1.336, allocations: 23.95 kB / 0.7224 GB, free: 15.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.711e-05/1.336, allocations: 28 kB / 0.7224 GB, free: 15.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001439/1.338, allocations: 0.7126 MB / 0.7231 GB, free: 14.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002494/1.34, allocations: 0.7605 MB / 0.7239 GB, free: 14.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007394/1.348, allocations: 9.344 MB / 0.733 GB, free: 4.383 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002791/1.35, allocations: 139.6 kB / 0.7331 GB, free: 4.246 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002446/1.351, allocations: 148 kB / 0.7333 GB, free: 4.102 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (382): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,75.0%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004675/1.351, allocations: 195.9 kB / 0.7335 GB, free: 3.902 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00046/1.352, allocations: 320.1 kB / 0.7338 GB, free: 3.586 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3182/1.67, allocations: 4.209 MB / 0.7379 GB, free: 67.72 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-05/1.67, allocations: 24.66 kB / 0.7379 GB, free: 67.72 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.04e-05/1.67, allocations: 14.02 kB / 0.7379 GB, free: 67.72 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.337e-05/1.67, allocations: 14.72 kB / 0.7379 GB, free: 67.72 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01822/1.688, allocations: 8.566 MB / 0.7463 GB, free: 66.94 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.147e-05/1.688, allocations: 3.062 kB / 0.7463 GB, free: 66.94 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001719/1.69, allocations: 421.6 kB / 0.7467 GB, free: 66.94 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002312/1.692, allocations: 0.9431 MB / 0.7476 GB, free: 66.89 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002316/1.693, allocations: 30.78 kB / 0.7476 GB, free: 66.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01312/1.706, allocations: 15.33 MB / 0.7626 GB, free: 58.32 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.827e-06/1.706, allocations: 8.5 kB / 0.7626 GB, free: 58.32 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01407/1.72, allocations: 6.376 MB / 0.7689 GB, free: 57.15 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00287/1.723, allocations: 0.6842 MB / 0.7695 GB, free: 57.06 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007651/1.724, allocations: 23.31 kB / 0.7695 GB, free: 57.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00173/1.725, allocations: 120.3 kB / 0.7697 GB, free: 57.05 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004576/1.726, allocations: 191.1 kB / 0.7698 GB, free: 57.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001607/1.726, allocations: 81.17 kB / 0.7699 GB, free: 57.05 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002563/1.729, allocations: 1.629 MB / 0.7715 GB, free: 56.91 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.81e-07/1.729, allocations: 0 / 0.7715 GB, free: 56.91 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004142/1.733, allocations: 0.9642 MB / 0.7725 GB, free: 56.91 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (199): * Single equations (assignments): 192 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,75.0%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001038/1.734, allocations: 0.4963 MB / 0.7729 GB, free: 56.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007072/1.741, allocations: 3.978 MB / 0.7768 GB, free: 56.12 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.223e-06/1.741, allocations: 1.031 kB / 0.7768 GB, free: 56.12 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004423/1.745, allocations: 2.684 MB / 0.7794 GB, free: 55.35 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004489/1.75, allocations: 0.6859 MB / 0.7801 GB, free: 55.34 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01988/1.77, allocations: 8.089 MB / 0.788 GB, free: 52.56 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00584/1.776, allocations: 3.534 MB / 0.7915 GB, free: 51.26 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004627/1.78, allocations: 0.7691 MB / 0.7922 GB, free: 51.17 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007979/1.781, allocations: 226.9 kB / 0.7924 GB, free: 51.16 MB / 442.7 MB Notification: Performance of SimCode: time 1.393e-06/1.781, allocations: 0 / 0.7924 GB, free: 51.16 MB / 442.7 MB Notification: Performance of Templates: time 0.08593/1.867, allocations: 43.66 MB / 0.8351 GB, free: 48.53 MB / 442.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/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