Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.265/1.265, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009095/0.0009094, allocations: 93.45 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002677/0.0002677, allocations: 8 kB / 351.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2601, allocations: 50.41 MB / 401.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4031/0.6632, allocations: 131.5 MB / 0.5206 GB, free: 94.6 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000267/0.6635, allocations: 96.14 kB / 0.5207 GB, free: 94.55 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2794/0.9429, allocations: 124.4 MB / 0.6421 GB, free: 1.723 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.9429, allocations: 0 / 0.6421 GB, free: 1.723 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004142/0.9434, allocations: 139.8 kB / 0.6423 GB, free: 1.586 MB / 410.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.01521/0.9586, allocations: 5.659 MB / 0.6478 GB, free: 11.85 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.626e-05/0.9586, allocations: 12.03 kB / 0.6478 GB, free: 11.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005244/0.9639, allocations: 1.012 MB / 0.6488 GB, free: 10.82 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01215/0.9761, allocations: 4.635 MB / 0.6533 GB, free: 6.105 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003865/0.9765, allocations: 402.8 kB / 0.6537 GB, free: 5.711 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001455/0.9779, allocations: 0.5233 MB / 0.6542 GB, free: 5.188 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2433/1.221, allocations: 6.957 MB / 0.661 GB, free: 43.14 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001885/1.221, allocations: 17.09 kB / 0.661 GB, free: 43.14 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006609/1.222, allocations: 225.8 kB / 0.6612 GB, free: 43.14 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003466/1.223, allocations: 247.9 kB / 0.6615 GB, free: 43.13 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01028/1.233, allocations: 5.631 MB / 0.667 GB, free: 43.08 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03547/1.268, allocations: 22.54 MB / 0.689 GB, free: 38.51 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00718/1.276, allocations: 8.393 MB / 0.6972 GB, free: 33.02 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009575/1.285, allocations: 5.341 MB / 0.7024 GB, free: 32.14 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/1.285, allocations: 54.97 kB / 0.7024 GB, free: 32.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=241): time 4.047e-06/1.285, allocations: 0 / 0.7024 GB, free: 32.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=269): time 0.02484/1.31, allocations: 13.03 MB / 0.7152 GB, free: 29.6 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/1.31, allocations: 82.91 kB / 0.7152 GB, free: 29.54 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005239/1.315, allocations: 2.741 MB / 0.7179 GB, free: 28.53 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003082/1.316, allocations: 73.05 kB / 0.718 GB, free: 28.46 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001591/1.317, allocations: 2.469 MB / 0.7204 GB, free: 26.73 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007485/1.318, allocations: 0.9206 MB / 0.7213 GB, free: 26.03 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000261/1.318, allocations: 70.41 kB / 0.7214 GB, free: 25.97 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001801/1.319, allocations: 435.2 kB / 0.7218 GB, free: 25.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002216/1.321, allocations: 1.451 MB / 0.7232 GB, free: 25.08 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002739/1.324, allocations: 2.402 MB / 0.7255 GB, free: 23.38 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002722/1.326, allocations: 1.864 MB / 0.7274 GB, free: 22.59 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.012e-05/1.326, allocations: 6.844 kB / 0.7274 GB, free: 22.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=426) (initialization): time 0.007675/1.334, allocations: 5.03 MB / 0.7323 GB, free: 20.69 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.43e-05/1.334, allocations: 20.97 kB / 0.7323 GB, free: 20.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.043e-05/1.334, allocations: 34.25 kB / 0.7323 GB, free: 20.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001582/1.336, allocations: 0.7221 MB / 0.733 GB, free: 20.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002664/1.338, allocations: 0.7755 MB / 0.7338 GB, free: 20.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00846/1.347, allocations: 9.998 MB / 0.7436 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003263/1.35, allocations: 203.4 kB / 0.7438 GB, free: 13.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003657/1.351, allocations: 146.4 kB / 0.7439 GB, free: 13.12 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 135 * 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 (389): * Single equations (assignments): 383 * 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,72.2%) 23,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003201/1.354, allocations: 1.588 MB / 0.7455 GB, free: 12.32 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008653/1.355, allocations: 355.5 kB / 0.7458 GB, free: 12.13 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007175/1.362, allocations: 4.518 MB / 0.7502 GB, free: 10.18 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-05/1.362, allocations: 24.66 kB / 0.7502 GB, free: 10.18 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.992e-05/1.362, allocations: 14.48 kB / 0.7502 GB, free: 10.18 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.271e-05/1.362, allocations: 10.5 kB / 0.7502 GB, free: 10.18 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01669/1.379, allocations: 9.746 MB / 0.7598 GB, free: 6.059 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.394e-05/1.379, allocations: 7.938 kB / 0.7598 GB, free: 6.055 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001853/1.381, allocations: 444.2 kB / 0.7602 GB, free: 6.039 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002378/1.383, allocations: 0.963 MB / 0.7611 GB, free: 5.75 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002348/1.383, allocations: 72.23 kB / 0.7612 GB, free: 5.711 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01435/1.398, allocations: 16.32 MB / 0.7771 GB, free: 9.262 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/1.398, allocations: 3.688 kB / 0.7771 GB, free: 9.262 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01124/1.409, allocations: 6.906 MB / 0.7839 GB, free: 5.684 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002127/1.411, allocations: 0.7381 MB / 0.7846 GB, free: 5.102 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005284/1.412, allocations: 67.52 kB / 0.7847 GB, free: 5.039 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001731/1.413, allocations: 161.8 kB / 0.7848 GB, free: 4.922 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004573/1.414, allocations: 207 kB / 0.785 GB, free: 4.793 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001722/1.414, allocations: 73.02 kB / 0.7851 GB, free: 4.727 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003353/1.417, allocations: 2.088 MB / 0.7871 GB, free: 2.977 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.417, allocations: 0 / 0.7871 GB, free: 2.977 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004044/1.421, allocations: 1.106 MB / 0.7882 GB, free: 1.883 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 (212): * Single equations (assignments): 205 * 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 {(1,100.0%) 5,(6,72.2%) 23,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009153/1.422, allocations: 0.5331 MB / 0.7887 GB, free: 1.477 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01223/1.435, allocations: 4.824 MB / 0.7934 GB, free: 14.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/1.435, allocations: 4 kB / 0.7934 GB, free: 14.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005267/1.44, allocations: 2.943 MB / 0.7963 GB, free: 11.78 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004864/1.445, allocations: 0.8773 MB / 0.7972 GB, free: 11.1 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02058/1.465, allocations: 12.17 MB / 0.8091 GB, free: 15.91 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003494/1.469, allocations: 3.532 MB / 0.8125 GB, free: 13.25 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003118/1.472, allocations: 0.8217 MB / 0.8133 GB, free: 12.68 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007374/1.473, allocations: 245.8 kB / 0.8135 GB, free: 12.45 MB / 474.7 MB Notification: Performance of SimCode: time 1.172e-06/1.473, allocations: 4 kB / 0.8136 GB, free: 12.45 MB / 474.7 MB Notification: Performance of Templates: time 0.3258/1.799, allocations: 54.43 MB / 0.8667 GB, free: 78.16 MB / 474.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches