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.001417/0.001417, allocations: 109.8 kB / 17.74 MB, free: 5.359 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.001511/0.001511, allocations: 181.5 kB / 18.66 MB, free: 4.445 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.383/1.383, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00108/0.00108, allocations: 51.92 kB / 352 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2474, allocations: 49.44 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03697/0.2844, allocations: 37.25 MB / 438.7 MB, free: 3.449 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0206/0.3051, allocations: 10.02 MB / 448.7 MB, free: 9.398 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006941/0.312, allocations: 271.1 kB / 449 MB, free: 9.133 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02072/0.3328, allocations: 9.105 MB / 458.1 MB, free: 8 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01298/0.3458, allocations: 3.915 MB / 462 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007474/0.3533, allocations: 2.379 MB / 464.4 MB, free: 9.703 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01961/0.3729, allocations: 14.1 MB / 478.5 MB, free: 11.56 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0444/0.4174, allocations: 25.62 MB / 0.4923 GB, free: 1.77 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01202/0.4294, allocations: 7.211 MB / 0.4993 GB, free: 10.54 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01277/0.4423, allocations: 7.895 MB / 0.507 GB, free: 2.613 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005595/0.4479, allocations: 2.027 MB / 0.509 GB, free: 0.5859 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007541/0.4555, allocations: 2.417 MB / 0.5114 GB, free: 14.17 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006244/0.4617, allocations: 4.029 MB / 0.5153 GB, free: 10.13 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01585/0.4776, allocations: 7.813 MB / 0.5229 GB, free: 2.289 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4535/0.9311, allocations: 26.93 MB / 0.5492 GB, free: 58.3 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.907e-06/0.9312, allocations: 0 / 0.5492 GB, free: 58.3 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.9312, allocations: 2 kB / 0.5492 GB, free: 58.3 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008072/0.932, allocations: 0 / 0.5492 GB, free: 58.3 MB / 462.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.05081/0.9829, allocations: 15.84 MB / 0.5647 GB, free: 54.14 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.9829, allocations: 10.09 kB / 0.5647 GB, free: 54.14 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03699/1.02, allocations: 6.408 MB / 0.571 GB, free: 51.67 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01803/1.038, allocations: 8.555 MB / 0.5793 GB, free: 48.99 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008655/1.039, allocations: 0.9028 MB / 0.5802 GB, free: 48.59 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006331/1.045, allocations: 1.19 MB / 0.5814 GB, free: 48.19 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04982/1.095, allocations: 18.76 MB / 0.5997 GB, free: 31.67 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005607/1.096, allocations: 27.64 kB / 0.5997 GB, free: 31.65 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004653/1.1, allocations: 0.4928 MB / 0.6002 GB, free: 31.17 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005681/1.101, allocations: 0.6498 MB / 0.6008 GB, free: 30.52 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03264/1.134, allocations: 16.99 MB / 0.6174 GB, free: 13.51 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1058/1.239, allocations: 61.88 MB / 0.6779 GB, free: 15.15 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02852/1.268, allocations: 29.71 MB / 0.7069 GB, free: 13.99 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00718/1.275, allocations: 4.001 MB / 0.7108 GB, free: 9.988 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01867/1.294, allocations: 10.08 MB / 0.7206 GB, free: 15.96 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.729e-05/1.294, allocations: 81.8 kB / 0.7207 GB, free: 15.88 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=402): time 5.59e-06/1.294, allocations: 0 / 0.7207 GB, free: 15.88 MB / 0.5607 GB Notification: Performance of matching and sorting (n=412): time 0.04774/1.342, allocations: 20.1 MB / 0.7403 GB, free: 11.52 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.516e-05/1.342, allocations: 124.3 kB / 0.7404 GB, free: 11.38 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009213/1.351, allocations: 5.161 MB / 0.7455 GB, free: 6.223 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.001053/1.352, allocations: 93.7 kB / 0.7456 GB, free: 6.125 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.005121/1.357, allocations: 5.346 MB / 0.7508 GB, free: 0.7461 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.2638/1.621, allocations: 1.423 MB / 0.7522 GB, free: 223 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002784/1.624, allocations: 1.244 MB / 0.7534 GB, free: 223 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 4.056e-05/1.624, allocations: 307.1 kB / 0.7537 GB, free: 222.7 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004119/1.628, allocations: 2.846 MB / 0.7565 GB, free: 222.7 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005092/1.633, allocations: 5.346 MB / 0.7617 GB, free: 218.8 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009901/1.643, allocations: 8.73 MB / 0.7702 GB, free: 212.6 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001278/1.644, allocations: 27.56 kB / 0.7702 GB, free: 212.6 MB / 0.5763 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01692/1.66, allocations: 9.671 MB / 0.7797 GB, free: 208.9 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 7.504e-05/1.661, allocations: 38.69 kB / 0.7797 GB, free: 208.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001414/1.661, allocations: 82.88 kB / 0.7798 GB, free: 208.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002808/1.664, allocations: 1.119 MB / 0.7809 GB, free: 208.6 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005482/1.669, allocations: 1.45 MB / 0.7823 GB, free: 208.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01387/1.683, allocations: 13.46 MB / 0.7955 GB, free: 198.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005456/1.688, allocations: 355.1 kB / 0.7958 GB, free: 198.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001163/1.69, allocations: 327.2 kB / 0.7961 GB, free: 198.3 MB / 0.5763 GB 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.007111/1.697, allocations: 4.226 MB / 0.8002 GB, free: 194.6 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001405/1.698, allocations: 0.5344 MB / 0.8008 GB, free: 194.4 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01166/1.71, allocations: 7.082 MB / 0.8077 GB, free: 188.3 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006051/1.716, allocations: 4.223 MB / 0.8118 GB, free: 184.7 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-05/1.716, allocations: 16 kB / 0.8118 GB, free: 184.7 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.354e-05/1.716, allocations: 26.92 kB / 0.8118 GB, free: 184.7 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02643/1.743, allocations: 16.96 MB / 0.8284 GB, free: 169.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.795e-05/1.743, allocations: 4 kB / 0.8284 GB, free: 169.6 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002798/1.745, allocations: 0.6871 MB / 0.8291 GB, free: 168.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002972/1.748, allocations: 1.183 MB / 0.8302 GB, free: 167.7 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004486/1.749, allocations: 104 kB / 0.8303 GB, free: 167.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01524/1.764, allocations: 17.38 MB / 0.8473 GB, free: 149.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/1.764, allocations: 7.938 kB / 0.8473 GB, free: 149.5 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01401/1.778, allocations: 10.27 MB / 0.8573 GB, free: 139 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002576/1.781, allocations: 1.115 MB / 0.8584 GB, free: 137.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001117/1.782, allocations: 88 kB / 0.8585 GB, free: 137.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002784/1.785, allocations: 211.8 kB / 0.8587 GB, free: 137.6 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007056/1.785, allocations: 307.3 kB / 0.859 GB, free: 137.3 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002638/1.786, allocations: 120 kB / 0.8591 GB, free: 137.1 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004863/1.791, allocations: 3.461 MB / 0.8625 GB, free: 133.7 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.583e-06/1.791, allocations: 0 / 0.8625 GB, free: 133.7 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.008021/1.799, allocations: 1.964 MB / 0.8644 GB, free: 131.7 MB / 0.5763 GB 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.0009124/1.8, allocations: 300.2 kB / 0.8647 GB, free: 131.5 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01131/1.811, allocations: 7.7 MB / 0.8722 GB, free: 123.7 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/1.811, allocations: 0 / 0.8722 GB, free: 123.7 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.00646/1.817, allocations: 4.093 MB / 0.8762 GB, free: 119.5 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009563/1.827, allocations: 1.429 MB / 0.8776 GB, free: 118.1 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03419/1.861, allocations: 19.97 MB / 0.8971 GB, free: 98.09 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008132/1.869, allocations: 7.132 MB / 0.9041 GB, free: 90.92 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001973/1.871, allocations: 463.3 kB / 0.9045 GB, free: 90.46 MB / 0.5763 GB Notification: Performance of SimCode: time 6.61e-07/1.871, allocations: 0 / 0.9045 GB, free: 90.46 MB / 0.5763 GB Notification: Performance of Templates: time 1.125/2.996, allocations: 0.4946 GB / 1.399 GB, free: 192.5 MB / 0.5763 GB 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 -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