Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_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.SMPM_Inverter_Polyphase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smpm3.is.1.|smpm3.is.2.|smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.is.1.|smpmM.is.2.|smpmM.is.3.|smpmM.is.4.|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|vfController3.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smpm3.is.1.|smpm3.is.2.|smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.is.1.|smpmM.is.2.|smpmM.is.3.|smpmM.is.4.|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|vfController3.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001044/0.001045, allocations: 203.3 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.228/1.228, allocations: 226.5 MB / 245.4 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007552/0.0007553, allocations: 101.2 kB / 297.4 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001978/0.0001978, allocations: 8 kB / 357.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1927/0.1929, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2786/0.4715, allocations: 120.8 MB / 0.5171 GB, free: 96.21 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/0.4718, allocations: 106.8 kB / 0.5172 GB, free: 96.14 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5313/1.003, allocations: 175.1 MB / 0.6882 GB, free: 37.27 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.805e-06/1.003, allocations: 0 / 0.6882 GB, free: 37.27 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000527/1.004, allocations: 185 kB / 0.6884 GB, free: 37.25 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02203/1.026, allocations: 7.298 MB / 0.6955 GB, free: 34.88 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/1.026, allocations: 10.31 kB / 0.6955 GB, free: 34.88 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009007/1.035, allocations: 1.608 MB / 0.6971 GB, free: 34.47 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01457/1.049, allocations: 5.473 MB / 0.7024 GB, free: 33.5 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006395/1.05, allocations: 0.5368 MB / 0.7029 GB, free: 33.49 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002697/1.053, allocations: 0.7104 MB / 0.7036 GB, free: 33.48 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02298/1.076, allocations: 9.589 MB / 0.713 GB, free: 32.68 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002259/1.076, allocations: 14.47 kB / 0.713 GB, free: 32.68 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001181/1.077, allocations: 304.5 kB / 0.7133 GB, free: 32.68 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002848/1.078, allocations: 347.2 kB / 0.7136 GB, free: 32.66 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0148/1.092, allocations: 7.801 MB / 0.7213 GB, free: 32.59 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05145/1.144, allocations: 31.01 MB / 0.7515 GB, free: 23.79 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01273/1.157, allocations: 17.34 MB / 0.7685 GB, free: 8.352 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007246/1.164, allocations: 4.451 MB / 0.7728 GB, free: 7.102 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01478/1.179, allocations: 9.568 MB / 0.7822 GB, free: 1.914 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.043e-05/1.179, allocations: 76.31 kB / 0.7822 GB, free: 1.84 MB / 442.7 MB Notification: Performance of pre-optimization done (n=290): time 5.711e-06/1.179, allocations: 0 / 0.7822 GB, free: 1.84 MB / 442.7 MB Notification: Performance of matching and sorting (n=298): time 0.02382/1.203, allocations: 12.59 MB / 0.7945 GB, free: 11.68 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.878e-05/1.203, allocations: 80.31 kB / 0.7946 GB, free: 11.62 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005101/1.208, allocations: 3.668 MB / 0.7982 GB, free: 10.2 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003938/1.208, allocations: 77.08 kB / 0.7983 GB, free: 10.13 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002076/1.21, allocations: 3.178 MB / 0.8014 GB, free: 7.723 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001131/1.212, allocations: 1.021 MB / 0.8024 GB, free: 6.93 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000226/1.212, allocations: 75.22 kB / 0.8024 GB, free: 6.871 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002736/1.212, allocations: 453.7 kB / 0.8029 GB, free: 6.504 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002622/1.215, allocations: 1.564 MB / 0.8044 GB, free: 5.891 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003243/1.218, allocations: 2.696 MB / 0.807 GB, free: 3.879 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006066/1.224, allocations: 4.541 MB / 0.8115 GB, free: 0.9531 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.058e-05/1.224, allocations: 15.44 kB / 0.8115 GB, free: 0.9492 MB / 458.7 MB Notification: Performance of matching and sorting (n=481) (initialization): time 0.00941/1.234, allocations: 5.401 MB / 0.8168 GB, free: 13.02 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.903e-05/1.234, allocations: 20.75 kB / 0.8168 GB, free: 13 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.29e-05/1.234, allocations: 36 kB / 0.8168 GB, free: 12.97 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001581/1.235, allocations: 0.5611 MB / 0.8174 GB, free: 12.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004114/1.239, allocations: 0.8658 MB / 0.8182 GB, free: 11.81 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009596/1.249, allocations: 8.677 MB / 0.8267 GB, free: 3.309 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003628/1.253, allocations: 182.7 kB / 0.8269 GB, free: 3.156 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006728/1.253, allocations: 162.8 kB / 0.827 GB, free: 3.004 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 158 * 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 (451): * Single equations (assignments): 445 * 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,(2,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005306/1.259, allocations: 2.141 MB / 0.8291 GB, free: 1.16 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001125/1.26, allocations: 414.9 kB / 0.8295 GB, free: 0.75 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01436/1.274, allocations: 5.265 MB / 0.8346 GB, free: 13.5 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.782e-05/1.274, allocations: 31.94 kB / 0.8347 GB, free: 13.47 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-05/1.274, allocations: 16 kB / 0.8347 GB, free: 13.46 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.361e-05/1.274, allocations: 14.02 kB / 0.8347 GB, free: 13.46 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02145/1.296, allocations: 11.14 MB / 0.8456 GB, free: 4.266 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.047e-05/1.296, allocations: 4 kB / 0.8456 GB, free: 4.262 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00224/1.298, allocations: 459.2 kB / 0.846 GB, free: 3.887 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00289/1.301, allocations: 1.063 MB / 0.8471 GB, free: 3.016 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005385/1.302, allocations: 84.94 kB / 0.8471 GB, free: 2.941 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2437/1.545, allocations: 17.59 MB / 0.8643 GB, free: 69.97 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.514e-06/1.545, allocations: 4.281 kB / 0.8643 GB, free: 69.97 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01217/1.558, allocations: 6.998 MB / 0.8712 GB, free: 69.21 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00226/1.56, allocations: 0.8365 MB / 0.872 GB, free: 69.12 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008265/1.561, allocations: 77.34 kB / 0.872 GB, free: 69.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002135/1.563, allocations: 155.2 kB / 0.8722 GB, free: 69.11 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005636/1.563, allocations: 217.1 kB / 0.8724 GB, free: 69.11 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001904/1.564, allocations: 90.17 kB / 0.8725 GB, free: 69.11 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004325/1.568, allocations: 2.47 MB / 0.8749 GB, free: 68.93 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.568, allocations: 3 kB / 0.8749 GB, free: 68.93 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006086/1.574, allocations: 1.31 MB / 0.8762 GB, free: 68.93 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (vfController3.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,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.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 (223): * Single equations (assignments): 216 * 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%) 14,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00123/1.575, allocations: 0.5958 MB / 0.8768 GB, free: 68.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007524/1.583, allocations: 4.592 MB / 0.8812 GB, free: 68.07 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.103e-05/1.583, allocations: 2.875 kB / 0.8812 GB, free: 68.07 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00509/1.588, allocations: 3.136 MB / 0.8843 GB, free: 67.21 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008863/1.597, allocations: 1.072 MB / 0.8854 GB, free: 67.19 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02503/1.622, allocations: 15.26 MB / 0.9003 GB, free: 60.71 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005568/1.628, allocations: 4.249 MB / 0.9044 GB, free: 59.82 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001407/1.629, allocations: 309.6 kB / 0.9047 GB, free: 59.82 MB / 490.7 MB Notification: Performance of SimCode: time 1.152e-06/1.629, allocations: 0 / 0.9047 GB, free: 59.82 MB / 490.7 MB Notification: Performance of Templates: time 0.7502/2.379, allocations: 322.5 MB / 1.22 GB, free: 105.6 MB / 0.5105 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_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/SMPM_Inverter_Polyphase/SMPM_Inverter_Polyphase.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches