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.001963/0.001963, allocations: 174.6 kB / 13.63 MB, free: 1.684 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.431/1.431, allocations: 221.3 MB / 235.5 MB, free: 2.938 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 90.61 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.259e-05/2.266e-05, allocations: 7.984 kB / 343.8 MB, free: 4.301 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09342/0.09346, allocations: 50.41 MB / 394.3 MB, free: 1.848 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3426/0.4361, allocations: 131.5 MB / 0.5134 GB, free: 3.992 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002721/0.4364, allocations: 103.8 kB / 0.5135 GB, free: 3.895 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5121/0.9485, allocations: 124.5 MB / 0.635 GB, free: 70.39 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.9486, allocations: 0 / 0.635 GB, free: 70.39 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004959/0.9491, allocations: 139.8 kB / 0.6352 GB, free: 70.25 MB / 426.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.01588/0.965, allocations: 5.121 MB / 0.6402 GB, free: 65.06 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.271e-05/0.9651, allocations: 12.03 kB / 0.6402 GB, free: 65.05 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006224/0.9713, allocations: 1.008 MB / 0.6412 GB, free: 64.04 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01201/0.9834, allocations: 4.6 MB / 0.6457 GB, free: 59.36 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003391/0.9838, allocations: 403.5 kB / 0.646 GB, free: 58.96 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00179/0.9856, allocations: 0.5194 MB / 0.6466 GB, free: 58.44 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01413/0.9997, allocations: 6.827 MB / 0.6532 GB, free: 51.41 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001343/0.9999, allocations: 7.906 kB / 0.6532 GB, free: 51.41 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005469/1, allocations: 228 kB / 0.6534 GB, free: 51.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001898/1.001, allocations: 250.6 kB / 0.6537 GB, free: 50.94 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009991/1.011, allocations: 5.415 MB / 0.659 GB, free: 45.52 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03845/1.049, allocations: 22.54 MB / 0.681 GB, free: 22.4 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006559/1.056, allocations: 8.267 MB / 0.6891 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002988/1.059, allocations: 2.113 MB / 0.6911 GB, free: 11.11 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01071/1.07, allocations: 6.31 MB / 0.6973 GB, free: 4.668 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.197e-05/1.07, allocations: 56.56 kB / 0.6973 GB, free: 4.602 MB / 426.7 MB Notification: Performance of pre-optimization done (n=227): time 4.488e-06/1.07, allocations: 0 / 0.6973 GB, free: 4.602 MB / 426.7 MB Notification: Performance of matching and sorting (n=254): time 0.02197/1.092, allocations: 10.09 MB / 0.7072 GB, free: 10.45 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.311e-05/1.092, allocations: 77.41 kB / 0.7073 GB, free: 10.36 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00517/1.097, allocations: 2.729 MB / 0.7099 GB, free: 7.633 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003175/1.097, allocations: 65.7 kB / 0.71 GB, free: 7.562 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001649/1.099, allocations: 2.491 MB / 0.7124 GB, free: 5.035 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007404/1.1, allocations: 0.8742 MB / 0.7133 GB, free: 4.148 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/1.1, allocations: 64 kB / 0.7133 GB, free: 4.086 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002098/1.1, allocations: 432.8 kB / 0.7137 GB, free: 3.656 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001961/1.102, allocations: 1.322 MB / 0.715 GB, free: 2.332 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.23/1.332, allocations: 2.285 MB / 0.7173 GB, free: 81.57 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003325/1.335, allocations: 1.743 MB / 0.719 GB, free: 81.52 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-05/1.335, allocations: 9.625 kB / 0.719 GB, free: 81.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=415) (initialization): time 0.007626/1.343, allocations: 4.766 MB / 0.7236 GB, free: 81.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.268e-05/1.343, allocations: 17.69 kB / 0.7237 GB, free: 81.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.571e-05/1.343, allocations: 32.38 kB / 0.7237 GB, free: 81.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001664/1.345, allocations: 0.7185 MB / 0.7244 GB, free: 81.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002758/1.348, allocations: 0.748 MB / 0.7251 GB, free: 81.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009522/1.357, allocations: 9.763 MB / 0.7347 GB, free: 76.06 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003211/1.36, allocations: 202.5 kB / 0.7348 GB, free: 76.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004521/1.361, allocations: 139.8 kB / 0.735 GB, free: 76.06 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 (378): * Single equations (assignments): 372 * 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%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005624/1.361, allocations: 311.4 kB / 0.7353 GB, free: 75.95 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007169/1.362, allocations: 348.2 kB / 0.7356 GB, free: 75.95 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007198/1.369, allocations: 4.218 MB / 0.7397 GB, free: 75.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.091e-05/1.369, allocations: 27.75 kB / 0.7398 GB, free: 75.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-05/1.369, allocations: 9.281 kB / 0.7398 GB, free: 75.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-05/1.369, allocations: 13.14 kB / 0.7398 GB, free: 75.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01591/1.385, allocations: 9.194 MB / 0.7488 GB, free: 74.67 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/1.385, allocations: 6.391 kB / 0.7488 GB, free: 74.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00165/1.387, allocations: 418 kB / 0.7492 GB, free: 74.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002315/1.389, allocations: 0.9604 MB / 0.7501 GB, free: 74.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001929/1.39, allocations: 68.8 kB / 0.7502 GB, free: 74.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01262/1.402, allocations: 15.95 MB / 0.7657 GB, free: 65.55 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/1.402, allocations: 10.09 kB / 0.7657 GB, free: 65.55 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007954/1.41, allocations: 6.383 MB / 0.772 GB, free: 62.89 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001923/1.412, allocations: 0.7229 MB / 0.7727 GB, free: 62.42 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005728/1.413, allocations: 62.84 kB / 0.7727 GB, free: 62.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001695/1.414, allocations: 159.7 kB / 0.7729 GB, free: 62.36 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004178/1.415, allocations: 188 kB / 0.7731 GB, free: 62.33 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001557/1.415, allocations: 74.8 kB / 0.7731 GB, free: 62.31 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003084/1.418, allocations: 2.055 MB / 0.7752 GB, free: 61.51 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.4e-07/1.418, allocations: 6.656 kB / 0.7752 GB, free: 61.51 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004074/1.422, allocations: 1.094 MB / 0.7762 GB, free: 61.39 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 (197): * Single equations (assignments): 190 * 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,72.2%) 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.0009282/1.423, allocations: 0.6192 MB / 0.7768 GB, free: 61.21 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005493/1.429, allocations: 4.143 MB / 0.7809 GB, free: 59.37 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/1.429, allocations: 0 / 0.7809 GB, free: 59.37 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003968/1.433, allocations: 2.769 MB / 0.7836 GB, free: 57.88 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004589/1.437, allocations: 0.887 MB / 0.7845 GB, free: 57.65 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01378/1.451, allocations: 8.256 MB / 0.7925 GB, free: 54.1 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002751/1.454, allocations: 3.526 MB / 0.796 GB, free: 52.81 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002726/1.457, allocations: 0.7985 MB / 0.7967 GB, free: 52.71 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006356/1.457, allocations: 243 kB / 0.797 GB, free: 52.69 MB / 442.7 MB Notification: Performance of SimCode: time 1.022e-06/1.457, allocations: 0 / 0.797 GB, free: 52.69 MB / 442.7 MB Notification: Performance of Templates: time 0.08123/1.539, allocations: 54.73 MB / 0.8504 GB, free: 15.85 MB / 442.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