Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.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.ComparisonPolyphase.SMR_Inverter_Polyphase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smr3.is.1.|smr3.is.2.|smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.is.1.|smrM.is.2.|smrM.is.3.|smrM.is.4.|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController3.x|vfControllerM.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smr3.is.1.|smr3.is.2.|smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.is.1.|smrM.is.2.|smrM.is.3.|smrM.is.4.|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController3.x|vfControllerM.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001513/0.001513, allocations: 197.7 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 226.5 MB / 245.4 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008142/0.0008141, allocations: 99.02 kB / 297.5 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002233/0.0002234, allocations: 4 kB / 358.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2088/0.2091, allocations: 51.28 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2983/0.5075, allocations: 116.9 MB / 0.514 GB, free: 98.54 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002553/0.5078, allocations: 107.8 kB / 0.5141 GB, free: 98.54 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5535/1.061, allocations: 164.9 MB / 0.6752 GB, free: 38.23 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.176e-06/1.061, allocations: 0 / 0.6752 GB, free: 38.23 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000648/1.062, allocations: 173.9 kB / 0.6753 GB, free: 38.23 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.01981/1.082, allocations: 7.009 MB / 0.6822 GB, free: 36.64 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/1.082, allocations: 7.75 kB / 0.6822 GB, free: 36.64 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008514/1.09, allocations: 1.524 MB / 0.6837 GB, free: 36.25 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01161/1.102, allocations: 5.237 MB / 0.6888 GB, free: 35.34 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000471/1.103, allocations: 0.5148 MB / 0.6893 GB, free: 35.32 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002427/1.105, allocations: 0.6833 MB / 0.69 GB, free: 35.31 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0232/1.128, allocations: 9.261 MB / 0.699 GB, free: 34.59 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002125/1.128, allocations: 17.98 kB / 0.699 GB, free: 34.58 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001235/1.13, allocations: 293.2 kB / 0.6993 GB, free: 34.58 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002832/1.13, allocations: 324.4 kB / 0.6996 GB, free: 34.56 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01755/1.147, allocations: 7.571 MB / 0.707 GB, free: 34.5 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04791/1.195, allocations: 29.05 MB / 0.7354 GB, free: 29.15 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01157/1.207, allocations: 17.75 MB / 0.7527 GB, free: 13.95 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006577/1.214, allocations: 4.144 MB / 0.7568 GB, free: 12.86 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01316/1.227, allocations: 9.104 MB / 0.7657 GB, free: 7.953 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.227e-05/1.227, allocations: 58.86 kB / 0.7657 GB, free: 7.895 MB / 442.7 MB Notification: Performance of pre-optimization done (n=260): time 3.897e-06/1.227, allocations: 0 / 0.7657 GB, free: 7.895 MB / 442.7 MB Notification: Performance of matching and sorting (n=266): time 0.02003/1.247, allocations: 11.79 MB / 0.7772 GB, free: 2.109 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.332e-05/1.247, allocations: 79.22 kB / 0.7773 GB, free: 2.043 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004246/1.251, allocations: 3.351 MB / 0.7806 GB, free: 0.7852 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003275/1.252, allocations: 69.02 kB / 0.7806 GB, free: 0.7227 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001964/1.254, allocations: 3.061 MB / 0.7836 GB, free: 14.46 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008502/1.254, allocations: 0.9205 MB / 0.7845 GB, free: 13.75 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001632/1.255, allocations: 63.34 kB / 0.7846 GB, free: 13.7 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002141/1.255, allocations: 438.7 kB / 0.785 GB, free: 13.34 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0022/1.257, allocations: 1.454 MB / 0.7864 GB, free: 12.77 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002704/1.26, allocations: 2.484 MB / 0.7888 GB, free: 10.93 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005201/1.265, allocations: 4.187 MB / 0.7929 GB, free: 8.25 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.002e-05/1.265, allocations: 10.97 kB / 0.7929 GB, free: 8.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.008017/1.273, allocations: 4.992 MB / 0.7978 GB, free: 6.254 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.787e-05/1.273, allocations: 18.75 kB / 0.7978 GB, free: 6.254 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.896e-05/1.273, allocations: 32.56 kB / 0.7979 GB, free: 6.254 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001302/1.275, allocations: 0.5534 MB / 0.7984 GB, free: 6.078 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002608/1.277, allocations: 0.7918 MB / 0.7992 GB, free: 6.047 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007904/1.285, allocations: 8.687 MB / 0.8077 GB, free: 15.17 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003285/1.288, allocations: 167.3 kB / 0.8078 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005554/1.289, allocations: 152.3 kB / 0.808 GB, free: 15.08 MB / 474.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 (405): * Single equations (assignments): 399 * 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 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(3,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004059/1.293, allocations: 2.078 MB / 0.81 GB, free: 14.02 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007728/1.294, allocations: 380.9 kB / 0.8104 GB, free: 13.82 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007429/1.301, allocations: 4.571 MB / 0.8148 GB, free: 10.86 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.136e-05/1.301, allocations: 28 kB / 0.8149 GB, free: 10.83 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.999e-05/1.301, allocations: 19.94 kB / 0.8149 GB, free: 10.81 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.192e-05/1.301, allocations: 15.81 kB / 0.8149 GB, free: 10.81 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01856/1.32, allocations: 10.37 MB / 0.825 GB, free: 2.289 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-05/1.32, allocations: 10.89 kB / 0.825 GB, free: 2.285 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001783/1.322, allocations: 409.2 kB / 0.8254 GB, free: 1.969 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00263/1.324, allocations: 1.035 MB / 0.8264 GB, free: 1.125 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002364/1.325, allocations: 71.64 kB / 0.8265 GB, free: 1.062 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01783/1.342, allocations: 17.35 MB / 0.8434 GB, free: 212 kB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/1.343, allocations: 4 kB / 0.8434 GB, free: 208 kB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2768/1.619, allocations: 6.467 MB / 0.8498 GB, free: 77.41 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00202/1.621, allocations: 0.7669 MB / 0.8505 GB, free: 77.31 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004825/1.622, allocations: 58.09 kB / 0.8506 GB, free: 77.31 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001636/1.624, allocations: 143.5 kB / 0.8507 GB, free: 77.31 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005853/1.624, allocations: 205.1 kB / 0.8509 GB, free: 77.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001684/1.624, allocations: 78.36 kB / 0.851 GB, free: 77.3 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003573/1.628, allocations: 2.27 MB / 0.8532 GB, free: 77.16 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.6e-07/1.628, allocations: 0 / 0.8532 GB, free: 77.16 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003919/1.632, allocations: 1.218 MB / 0.8544 GB, free: 77.16 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * 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 (195): * Single equations (assignments): 188 * 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%) 8,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008325/1.633, allocations: 0.5253 MB / 0.8549 GB, free: 77.06 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006147/1.639, allocations: 4.297 MB / 0.8591 GB, free: 76.33 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/1.639, allocations: 0 / 0.8591 GB, free: 76.33 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004404/1.643, allocations: 2.964 MB / 0.862 GB, free: 75.48 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006434/1.65, allocations: 0.9616 MB / 0.8629 GB, free: 75.46 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02264/1.672, allocations: 14.65 MB / 0.8772 GB, free: 69.39 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004254/1.677, allocations: 4.231 MB / 0.8814 GB, free: 68.5 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003736/1.68, allocations: 0.8359 MB / 0.8822 GB, free: 68.39 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007129/1.681, allocations: 257.4 kB / 0.8824 GB, free: 68.38 MB / 490.7 MB Notification: Performance of SimCode: time 1.252e-06/1.681, allocations: 0 / 0.8824 GB, free: 68.38 MB / 490.7 MB Notification: Performance of Templates: time 0.1008/1.782, allocations: 57.64 MB / 0.9387 GB, free: 65.59 MB / 490.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/ComparisonPolyphase/SMR_Inverter_Polyphase/SMR_Inverter_Polyphase.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches