Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 107.4 kB / 17.68 MB, free: 5.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 192 kB / 18.62 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008968/0.000897, allocations: 56.08 kB / 302.1 MB, free: 5.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09426/0.09518, allocations: 49.44 MB / 351.5 MB, free: 3.656 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.2351/0.3303, allocations: 37.24 MB / 388.8 MB, free: 6.992 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02104/0.3514, allocations: 10.03 MB / 398.8 MB, free: 180 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008832/0.3603, allocations: 272.2 kB / 399.1 MB, free: 124 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02063/0.3809, allocations: 9.098 MB / 408.2 MB, free: 9.832 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01446/0.3954, allocations: 3.911 MB / 412.1 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006949/0.4023, allocations: 2.383 MB / 414.5 MB, free: 4.715 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01698/0.4193, allocations: 14.08 MB / 428.5 MB, free: 8.406 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03424/0.4536, allocations: 25.61 MB / 454.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01074/0.4644, allocations: 7.176 MB / 461.3 MB, free: 7.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01298/0.4774, allocations: 7.899 MB / 469.2 MB, free: 15.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005557/0.483, allocations: 2.027 MB / 471.3 MB, free: 13.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005983/0.489, allocations: 2.421 MB / 473.7 MB, free: 11.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003481/0.4925, allocations: 4.029 MB / 477.7 MB, free: 7.016 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01091/0.5034, allocations: 7.813 MB / 485.5 MB, free: 15.17 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02799/0.5314, allocations: 26.94 MB / 0.5004 GB, free: 4.156 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.546e-06/0.5315, allocations: 0 / 0.5004 GB, free: 4.156 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.5315, allocations: 0 / 0.5004 GB, free: 4.156 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0007935/0.5323, allocations: 0 / 0.5004 GB, free: 4.156 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.04335/0.5756, allocations: 15.83 MB / 0.5159 GB, free: 4.203 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.5757, allocations: 8.031 kB / 0.5159 GB, free: 4.195 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3602/0.9359, allocations: 6.407 MB / 0.5222 GB, free: 118 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01751/0.9534, allocations: 8.551 MB / 0.5305 GB, free: 114.5 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006682/0.9541, allocations: 0.9077 MB / 0.5314 GB, free: 114.1 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003596/0.9577, allocations: 1.192 MB / 0.5326 GB, free: 113.7 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03767/0.9954, allocations: 18.76 MB / 0.5509 GB, free: 105 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003322/0.9958, allocations: 19.64 kB / 0.5509 GB, free: 105 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001758/0.9975, allocations: 0.4992 MB / 0.5514 GB, free: 104.6 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004135/0.9979, allocations: 0.653 MB / 0.552 GB, free: 104.4 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02376/1.022, allocations: 17.01 MB / 0.5686 GB, free: 88.81 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07495/1.097, allocations: 61.87 MB / 0.6291 GB, free: 25.77 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02049/1.117, allocations: 29.7 MB / 0.6581 GB, free: 8.602 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005501/1.123, allocations: 4.027 MB / 0.662 GB, free: 4.57 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0152/1.138, allocations: 10.08 MB / 0.6718 GB, free: 10.51 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.83e-05/1.138, allocations: 73.8 kB / 0.6719 GB, free: 10.43 MB / 462.1 MB Notification: Performance of pre-optimization done (n=402): time 4.579e-06/1.138, allocations: 0 / 0.6719 GB, free: 10.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=412): time 0.03512/1.173, allocations: 20.11 MB / 0.6916 GB, free: 5.996 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.614e-05/1.173, allocations: 116.4 kB / 0.6917 GB, free: 5.859 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006211/1.179, allocations: 5.169 MB / 0.6967 GB, free: 0.6992 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000223/1.18, allocations: 93.64 kB / 0.6968 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1718/1.352, allocations: 5.347 MB / 0.702 GB, free: 148.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002234/1.354, allocations: 1.426 MB / 0.7034 GB, free: 147.6 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004711/1.359, allocations: 1.245 MB / 0.7046 GB, free: 147.1 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.083e-05/1.359, allocations: 306.5 kB / 0.7049 GB, free: 146.8 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004412/1.363, allocations: 2.844 MB / 0.7077 GB, free: 145.7 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005047/1.368, allocations: 5.351 MB / 0.7129 GB, free: 141.4 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00944/1.378, allocations: 8.725 MB / 0.7214 GB, free: 135.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001357/1.378, allocations: 26.88 kB / 0.7215 GB, free: 135.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01396/1.392, allocations: 9.675 MB / 0.7309 GB, free: 131.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.19e-05/1.392, allocations: 39.72 kB / 0.731 GB, free: 131.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.492e-05/1.392, allocations: 85.44 kB / 0.731 GB, free: 131.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002337/1.394, allocations: 1.118 MB / 0.7321 GB, free: 131 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004146/1.398, allocations: 1.447 MB / 0.7335 GB, free: 130.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01152/1.41, allocations: 13.47 MB / 0.7467 GB, free: 121.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00449/1.414, allocations: 354.8 kB / 0.747 GB, free: 121.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005937/1.415, allocations: 325.5 kB / 0.7473 GB, free: 121.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (764): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004999/1.42, allocations: 4.226 MB / 0.7515 GB, free: 119 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008825/1.421, allocations: 0.5252 MB / 0.752 GB, free: 118.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009329/1.43, allocations: 7.083 MB / 0.7589 GB, free: 114.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004888/1.435, allocations: 4.231 MB / 0.763 GB, free: 111.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.53e-05/1.435, allocations: 16 kB / 0.7631 GB, free: 111.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-05/1.435, allocations: 22.08 kB / 0.7631 GB, free: 111.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01989/1.455, allocations: 16.95 MB / 0.7796 GB, free: 95.26 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-05/1.455, allocations: 7.984 kB / 0.7796 GB, free: 95.25 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002433/1.458, allocations: 0.6787 MB / 0.7803 GB, free: 94.57 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002474/1.46, allocations: 1.187 MB / 0.7815 GB, free: 93.36 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002175/1.46, allocations: 103.7 kB / 0.7816 GB, free: 93.27 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01293/1.473, allocations: 17.38 MB / 0.7985 GB, free: 75.07 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/1.473, allocations: 11.88 kB / 0.7985 GB, free: 75.06 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.011/1.484, allocations: 10.26 MB / 0.8086 GB, free: 64.62 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001988/1.486, allocations: 1.115 MB / 0.8097 GB, free: 63.48 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005582/1.487, allocations: 79.98 kB / 0.8097 GB, free: 63.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002027/1.489, allocations: 215.8 kB / 0.8099 GB, free: 63.19 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004594/1.489, allocations: 315.6 kB / 0.8102 GB, free: 62.88 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002265/1.49, allocations: 120 kB / 0.8104 GB, free: 62.77 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003539/1.493, allocations: 3.465 MB / 0.8137 GB, free: 59.32 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.9e-07/1.493, allocations: 0 / 0.8137 GB, free: 59.32 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005006/1.498, allocations: 1.952 MB / 0.8156 GB, free: 57.37 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.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 (353): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (10,46,52.0%), (1,1,100.0%), (1,5,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005067/1.499, allocations: 298.9 kB / 0.8159 GB, free: 57.09 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008887/1.508, allocations: 7.706 MB / 0.8235 GB, free: 49.31 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/1.508, allocations: 320 / 0.8235 GB, free: 49.31 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004525/1.512, allocations: 4.095 MB / 0.8275 GB, free: 45.14 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004695/1.517, allocations: 1.428 MB / 0.8288 GB, free: 43.75 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02316/1.54, allocations: 20.29 MB / 0.8487 GB, free: 23.39 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004996/1.545, allocations: 7.364 MB / 0.8559 GB, free: 15.98 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004385/1.549, allocations: 2.005 MB / 0.8578 GB, free: 13.97 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009225/1.55, allocations: 399.4 kB / 0.8582 GB, free: 13.58 MB / 478.1 MB Notification: Performance of SimCode: time 1.563e-06/1.55, allocations: 0 / 0.8582 GB, free: 13.58 MB / 478.1 MB Notification: Performance of Templates: time 1.132/2.682, allocations: 77.76 MB / 0.9341 GB, free: 99.84 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches