Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001499/0.001499, allocations: 111 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00161/0.00161, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.4 MB / 246.9 MB, free: 8.887 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 60.31 kB / 306.9 MB, free: 0.7461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09552/0.09679, allocations: 50.54 MB / 357.5 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.1973/0.2942, allocations: 37.22 MB / 394.7 MB, free: 15.7 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0235/0.3177, allocations: 10.18 MB / 404.9 MB, free: 8.324 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00916/0.327, allocations: 264.5 kB / 405.1 MB, free: 8.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02163/0.3486, allocations: 8.55 MB / 413.7 MB, free: 2.223 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01553/0.3642, allocations: 3.571 MB / 417.3 MB, free: 15.4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009168/0.3734, allocations: 2.263 MB / 419.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02068/0.3941, allocations: 14.48 MB / 434 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04051/0.4346, allocations: 20.94 MB / 454.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01307/0.4477, allocations: 6.137 MB / 461.1 MB, free: 4.723 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01355/0.4613, allocations: 7.488 MB / 468.6 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005483/0.4669, allocations: 1.293 MB / 469.9 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008395/0.4753, allocations: 1.707 MB / 471.6 MB, free: 10.21 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006683/0.482, allocations: 3.287 MB / 474.8 MB, free: 6.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01539/0.4975, allocations: 7.051 MB / 481.9 MB, free: 15.82 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02772/0.5252, allocations: 23.36 MB / 0.4934 GB, free: 8.414 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.133e-05/0.5253, allocations: 3.984 kB / 0.4934 GB, free: 8.41 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.5253, allocations: 4 kB / 0.4934 GB, free: 8.406 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000946/0.5262, allocations: 0 / 0.4934 GB, free: 8.406 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.05528/0.5816, allocations: 15.95 MB / 0.509 GB, free: 8.332 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.681e-05/0.5816, allocations: 11.97 kB / 0.509 GB, free: 8.32 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03742/0.6191, allocations: 6.408 MB / 0.5153 GB, free: 1.891 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02037/0.6395, allocations: 8.32 MB / 0.5234 GB, free: 9.488 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001096/0.6407, allocations: 0.9032 MB / 0.5243 GB, free: 8.586 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00623/0.6469, allocations: 1.195 MB / 0.5254 GB, free: 7.391 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4436/1.091, allocations: 18.79 MB / 0.5438 GB, free: 118.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005568/1.091, allocations: 24.17 kB / 0.5438 GB, free: 118.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004057/1.095, allocations: 0.4902 MB / 0.5443 GB, free: 118.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000866/1.096, allocations: 0.6506 MB / 0.5449 GB, free: 118.2 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03752/1.134, allocations: 17.02 MB / 0.5615 GB, free: 111.8 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09447/1.228, allocations: 63.92 MB / 0.624 GB, free: 53.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02107/1.249, allocations: 30.05 MB / 0.6533 GB, free: 19.61 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005766/1.255, allocations: 4.09 MB / 0.6573 GB, free: 15.51 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0175/1.273, allocations: 10.49 MB / 0.6676 GB, free: 4.992 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.456e-05/1.273, allocations: 77.81 kB / 0.6676 GB, free: 4.906 MB / 446.1 MB Notification: Performance of pre-optimization done (n=408): time 5.44e-06/1.273, allocations: 0 / 0.6676 GB, free: 4.906 MB / 446.1 MB Notification: Performance of matching and sorting (n=418): time 0.04359/1.316, allocations: 20.37 MB / 0.6875 GB, free: 192 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.776e-05/1.316, allocations: 128.3 kB / 0.6876 GB, free: 40 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00878/1.325, allocations: 5.186 MB / 0.6927 GB, free: 10.86 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008262/1.326, allocations: 93.7 kB / 0.6928 GB, free: 10.77 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003671/1.33, allocations: 5.359 MB / 0.698 GB, free: 5.375 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001763/1.332, allocations: 1.446 MB / 0.6994 GB, free: 3.941 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002138/1.334, allocations: 1.247 MB / 0.7007 GB, free: 2.684 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.031e-05/1.334, allocations: 305.1 kB / 0.701 GB, free: 2.383 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004626/1.338, allocations: 2.886 MB / 0.7038 GB, free: 15.49 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006636/1.345, allocations: 5.392 MB / 0.709 GB, free: 8.949 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2379/1.583, allocations: 8.799 MB / 0.7176 GB, free: 149.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000124/1.583, allocations: 27.25 kB / 0.7177 GB, free: 149.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.02159/1.605, allocations: 9.761 MB / 0.7272 GB, free: 147.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.577e-05/1.605, allocations: 41.25 kB / 0.7272 GB, free: 147.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001962/1.605, allocations: 82.56 kB / 0.7273 GB, free: 147.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003427/1.609, allocations: 1.12 MB / 0.7284 GB, free: 147.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006156/1.615, allocations: 1.448 MB / 0.7298 GB, free: 147.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01516/1.63, allocations: 12.52 MB / 0.742 GB, free: 138.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005693/1.636, allocations: 355.7 kB / 0.7424 GB, free: 138.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001277/1.637, allocations: 332 kB / 0.7427 GB, free: 138.6 MB / 494.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 (767): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.008232/1.645, allocations: 4.24 MB / 0.7468 GB, free: 136.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001529/1.647, allocations: 0.5312 MB / 0.7473 GB, free: 136.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01138/1.658, allocations: 7.173 MB / 0.7544 GB, free: 133.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006329/1.665, allocations: 4.307 MB / 0.7586 GB, free: 131.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.38e-05/1.665, allocations: 15.72 kB / 0.7586 GB, free: 131.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.689e-05/1.665, allocations: 26.2 kB / 0.7586 GB, free: 131.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03132/1.696, allocations: 17.1 MB / 0.7753 GB, free: 124.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.107e-05/1.696, allocations: 5.938 kB / 0.7753 GB, free: 124.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003045/1.699, allocations: 0.6818 MB / 0.776 GB, free: 124.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003093/1.702, allocations: 1.187 MB / 0.7771 GB, free: 124.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006617/1.703, allocations: 100.4 kB / 0.7772 GB, free: 124.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01502/1.718, allocations: 16.03 MB / 0.7929 GB, free: 109.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/1.718, allocations: 4 kB / 0.7929 GB, free: 109.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01531/1.733, allocations: 10.42 MB / 0.8031 GB, free: 98.91 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003271/1.737, allocations: 1.122 MB / 0.8042 GB, free: 97.78 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001453/1.738, allocations: 83.98 kB / 0.8042 GB, free: 97.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003204/1.741, allocations: 211.8 kB / 0.8044 GB, free: 97.49 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007864/1.742, allocations: 303.4 kB / 0.8047 GB, free: 97.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000285/1.742, allocations: 124 kB / 0.8048 GB, free: 97.07 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005753/1.748, allocations: 3.481 MB / 0.8082 GB, free: 93.61 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.71e-07/1.748, allocations: 4 kB / 0.8082 GB, free: 93.61 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008921/1.757, allocations: 1.968 MB / 0.8102 GB, free: 91.64 MB / 494.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 (356): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,48.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.001272/1.758, allocations: 278.5 kB / 0.8104 GB, free: 91.38 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01195/1.77, allocations: 7.78 MB / 0.818 GB, free: 83.52 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.042e-05/1.77, allocations: 4 kB / 0.818 GB, free: 83.51 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006568/1.777, allocations: 4.131 MB / 0.8221 GB, free: 79.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009509/1.787, allocations: 1.362 MB / 0.8234 GB, free: 77.97 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04104/1.828, allocations: 25.38 MB / 0.8482 GB, free: 52.52 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01073/1.838, allocations: 7.139 MB / 0.8552 GB, free: 45.35 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002266/1.841, allocations: 467.3 kB / 0.8556 GB, free: 44.89 MB / 494.1 MB Notification: Performance of SimCode: time 1.212e-06/1.841, allocations: 1.094 kB / 0.8556 GB, free: 44.89 MB / 494.1 MB Notification: Performance of Templates: time 1.178/3.019, allocations: 0.4951 GB / 1.351 GB, free: 123.6 MB / 0.5138 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches