Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_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.001483/0.001482, allocations: 203.1 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 226.5 MB / 245.4 MB, free: 8.258 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007829/0.0007829, allocations: 98 kB / 297.4 MB, free: 6.926 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002256/0.0002257, allocations: 8 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.1983, allocations: 51.29 MB / 408.7 MB, free: 27.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3001/0.4985, allocations: 116.9 MB / 0.5133 GB, free: 98.63 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002473/0.4988, allocations: 107.9 kB / 0.5134 GB, free: 98.63 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5782/1.077, allocations: 164.9 MB / 0.6745 GB, free: 37.95 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.404e-06/1.077, allocations: 2.375 kB / 0.6745 GB, free: 37.95 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006814/1.078, allocations: 169.6 kB / 0.6746 GB, free: 37.95 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.02191/1.1, allocations: 7.006 MB / 0.6815 GB, free: 36.4 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/1.1, allocations: 8.531 kB / 0.6815 GB, free: 36.4 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009263/1.109, allocations: 1.532 MB / 0.683 GB, free: 36 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0128/1.122, allocations: 5.248 MB / 0.6881 GB, free: 35.09 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006494/1.123, allocations: 0.5157 MB / 0.6886 GB, free: 35.08 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003219/1.126, allocations: 0.6833 MB / 0.6893 GB, free: 35.07 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02493/1.151, allocations: 9.257 MB / 0.6983 GB, free: 34.34 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003266/1.151, allocations: 11.47 kB / 0.6983 GB, free: 34.34 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002251/1.153, allocations: 292.5 kB / 0.6986 GB, free: 34.34 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003527/1.154, allocations: 328.1 kB / 0.6989 GB, free: 34.32 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0178/1.171, allocations: 7.569 MB / 0.7063 GB, free: 34.26 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05528/1.227, allocations: 29.05 MB / 0.7347 GB, free: 28.91 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01493/1.242, allocations: 17.76 MB / 0.752 GB, free: 13.7 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007904/1.25, allocations: 4.141 MB / 0.7561 GB, free: 12.61 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01907/1.269, allocations: 9.093 MB / 0.765 GB, free: 7.707 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.995e-05/1.269, allocations: 67.94 kB / 0.765 GB, free: 7.645 MB / 442.7 MB Notification: Performance of pre-optimization done (n=260): time 6.021e-06/1.269, allocations: 3.281 kB / 0.765 GB, free: 7.645 MB / 442.7 MB Notification: Performance of matching and sorting (n=266): time 0.02626/1.295, allocations: 11.78 MB / 0.7765 GB, free: 1.867 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.152e-05/1.295, allocations: 86.09 kB / 0.7766 GB, free: 1.797 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007284/1.303, allocations: 3.349 MB / 0.7799 GB, free: 0.543 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006325/1.303, allocations: 72.55 kB / 0.7799 GB, free: 488 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003537/1.307, allocations: 3.124 MB / 0.783 GB, free: 14.46 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001385/1.308, allocations: 0.9167 MB / 0.7839 GB, free: 13.75 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005333/1.309, allocations: 66.84 kB / 0.784 GB, free: 13.7 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003379/1.309, allocations: 440.3 kB / 0.7844 GB, free: 13.34 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00277/1.312, allocations: 1.455 MB / 0.7858 GB, free: 12.77 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003439/1.315, allocations: 2.477 MB / 0.7882 GB, free: 10.93 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006977/1.322, allocations: 4.186 MB / 0.7923 GB, free: 8.25 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.943e-05/1.323, allocations: 10.94 kB / 0.7923 GB, free: 8.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01003/1.333, allocations: 4.998 MB / 0.7972 GB, free: 6.25 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.367e-05/1.333, allocations: 18.94 kB / 0.7972 GB, free: 6.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.435e-05/1.333, allocations: 36.56 kB / 0.7972 GB, free: 6.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00142/1.334, allocations: 0.5574 MB / 0.7978 GB, free: 6.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002858/1.337, allocations: 0.7858 MB / 0.7986 GB, free: 6.043 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008773/1.346, allocations: 8.684 MB / 0.807 GB, free: 15.17 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004743/1.351, allocations: 169 kB / 0.8072 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001033/1.352, allocations: 152.7 kB / 0.8073 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.005757/1.358, allocations: 2.083 MB / 0.8094 GB, free: 14.02 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001228/1.359, allocations: 379.2 kB / 0.8097 GB, free: 13.82 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009868/1.369, allocations: 4.567 MB / 0.8142 GB, free: 11.08 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-05/1.369, allocations: 28 kB / 0.8142 GB, free: 11.05 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.882e-05/1.369, allocations: 15.94 kB / 0.8142 GB, free: 11.04 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.065e-05/1.369, allocations: 16.94 kB / 0.8143 GB, free: 11.03 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02532/1.394, allocations: 10.38 MB / 0.8244 GB, free: 2.508 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-05/1.394, allocations: 4 kB / 0.8244 GB, free: 2.504 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001932/1.396, allocations: 408 kB / 0.8248 GB, free: 2.188 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002752/1.399, allocations: 1.027 MB / 0.8258 GB, free: 1.348 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003806/1.399, allocations: 75.17 kB / 0.8259 GB, free: 1.281 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01958/1.419, allocations: 17.34 MB / 0.8428 GB, free: 380 kB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/1.419, allocations: 4 kB / 0.8428 GB, free: 376 kB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3333/1.752, allocations: 6.471 MB / 0.8491 GB, free: 77.05 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003299/1.756, allocations: 0.7633 MB / 0.8499 GB, free: 76.96 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001567/1.757, allocations: 68.95 kB / 0.8499 GB, free: 76.95 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002279/1.76, allocations: 143.8 kB / 0.8501 GB, free: 76.95 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005495/1.76, allocations: 199.6 kB / 0.8502 GB, free: 76.95 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000192/1.76, allocations: 79.83 kB / 0.8503 GB, free: 76.95 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003913/1.764, allocations: 2.263 MB / 0.8525 GB, free: 76.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.102e-06/1.764, allocations: 3.969 kB / 0.8525 GB, free: 76.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005321/1.77, allocations: 1.228 MB / 0.8537 GB, free: 76.8 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.001191/1.771, allocations: 0.5108 MB / 0.8542 GB, free: 76.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006959/1.778, allocations: 4.303 MB / 0.8584 GB, free: 75.97 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.834e-06/1.778, allocations: 0 / 0.8584 GB, free: 75.97 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004881/1.783, allocations: 2.954 MB / 0.8613 GB, free: 75.12 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006915/1.79, allocations: 0.9637 MB / 0.8623 GB, free: 75.11 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02617/1.816, allocations: 14.62 MB / 0.8765 GB, free: 69.02 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004811/1.821, allocations: 4.128 MB / 0.8806 GB, free: 68.16 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001387/1.822, allocations: 286.2 kB / 0.8808 GB, free: 68.16 MB / 490.7 MB Notification: Performance of SimCode: time 1.092e-06/1.822, allocations: 2.531 kB / 0.8809 GB, free: 68.16 MB / 490.7 MB Notification: Performance of Templates: time 0.5573/2.379, allocations: 306.9 MB / 1.181 GB, free: 7.109 MB / 0.4949 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches