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.001108/0.001108, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001213/0.001213, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 63.95 kB / 308.4 MB, free: 15.84 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09612/0.09733, allocations: 50.53 MB / 358.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.194/0.2914, allocations: 37.9 MB / 396.8 MB, free: 14.93 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02632/0.3178, allocations: 10.29 MB / 407.1 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008973/0.3268, allocations: 274.2 kB / 407.4 MB, free: 7.379 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02176/0.3486, allocations: 9.118 MB / 416.5 MB, free: 492 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01543/0.364, allocations: 3.909 MB / 420.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008457/0.3725, allocations: 2.428 MB / 422.8 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02101/0.3935, allocations: 14.23 MB / 437.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04114/0.4347, allocations: 25.62 MB / 462.7 MB, free: 3.586 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009916/0.4447, allocations: 7.192 MB / 469.9 MB, free: 12.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01183/0.4565, allocations: 8.043 MB / 477.9 MB, free: 4.305 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004369/0.4609, allocations: 2.035 MB / 480 MB, free: 2.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006283/0.4672, allocations: 2.441 MB / 482.4 MB, free: 15.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004438/0.4717, allocations: 4.033 MB / 486.4 MB, free: 11.79 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01336/0.485, allocations: 7.821 MB / 494.3 MB, free: 3.934 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03105/0.5161, allocations: 26.99 MB / 0.509 GB, free: 8.867 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.5162, allocations: 0 / 0.509 GB, free: 8.867 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.5162, allocations: 0 / 0.509 GB, free: 8.867 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007169/0.5169, allocations: 0 / 0.509 GB, free: 8.867 MB / 430.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.04833/0.5652, allocations: 15.88 MB / 0.5245 GB, free: 8.871 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.5653, allocations: 16.03 kB / 0.5245 GB, free: 8.855 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03717/0.6025, allocations: 6.451 MB / 0.5308 GB, free: 2.383 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3187/0.9212, allocations: 8.591 MB / 0.5392 GB, free: 124.3 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007505/0.922, allocations: 0.9028 MB / 0.5401 GB, free: 123.9 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003887/0.9259, allocations: 1.197 MB / 0.5413 GB, free: 123.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04303/0.9689, allocations: 18.76 MB / 0.5596 GB, free: 115.9 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007308/0.9697, allocations: 16.94 kB / 0.5596 GB, free: 115.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004571/0.9743, allocations: 0.4906 MB / 0.5601 GB, free: 115.6 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006809/0.975, allocations: 0.6534 MB / 0.5607 GB, free: 115.5 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02914/1.004, allocations: 17.01 MB / 0.5773 GB, free: 103.2 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1239/1.128, allocations: 63.19 MB / 0.6391 GB, free: 38.74 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02383/1.152, allocations: 30.01 MB / 0.6684 GB, free: 5.207 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006044/1.158, allocations: 4.047 MB / 0.6723 GB, free: 1.152 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0223/1.18, allocations: 10.37 MB / 0.6824 GB, free: 6.75 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.975e-05/1.18, allocations: 81.73 kB / 0.6825 GB, free: 6.66 MB / 462.1 MB Notification: Performance of pre-optimization done (n=402): time 7.524e-06/1.18, allocations: 0 / 0.6825 GB, free: 6.66 MB / 462.1 MB Notification: Performance of matching and sorting (n=412): time 0.04575/1.226, allocations: 20.12 MB / 0.7022 GB, free: 2.215 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.829e-05/1.226, allocations: 120.4 kB / 0.7023 GB, free: 2.074 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008204/1.235, allocations: 5.189 MB / 0.7073 GB, free: 12.9 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007938/1.235, allocations: 93.7 kB / 0.7074 GB, free: 12.8 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003437/1.239, allocations: 5.363 MB / 0.7127 GB, free: 7.402 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001679/1.241, allocations: 1.417 MB / 0.7141 GB, free: 5.996 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001913/1.242, allocations: 1.243 MB / 0.7153 GB, free: 4.742 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.162e-05/1.243, allocations: 305.1 kB / 0.7156 GB, free: 4.441 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00437/1.247, allocations: 2.851 MB / 0.7183 GB, free: 1.586 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.198/1.445, allocations: 5.342 MB / 0.7236 GB, free: 154.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01025/1.455, allocations: 8.734 MB / 0.7321 GB, free: 149.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001366/1.455, allocations: 23.84 kB / 0.7321 GB, free: 149.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01729/1.473, allocations: 9.684 MB / 0.7416 GB, free: 145.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.747e-05/1.473, allocations: 40.78 kB / 0.7416 GB, free: 145.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001637/1.473, allocations: 81.41 kB / 0.7417 GB, free: 145.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003067/1.476, allocations: 1.122 MB / 0.7428 GB, free: 145.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005261/1.481, allocations: 1.452 MB / 0.7442 GB, free: 145 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01313/1.495, allocations: 13.47 MB / 0.7574 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004989/1.5, allocations: 364.8 kB / 0.7577 GB, free: 135.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007783/1.5, allocations: 319.7 kB / 0.758 GB, free: 135.4 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 (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.005743/1.506, allocations: 4.234 MB / 0.7621 GB, free: 133.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001083/1.507, allocations: 0.532 MB / 0.7627 GB, free: 133.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01093/1.518, allocations: 7.087 MB / 0.7696 GB, free: 130.3 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005708/1.524, allocations: 4.229 MB / 0.7737 GB, free: 128.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.231e-05/1.524, allocations: 15.12 kB / 0.7737 GB, free: 128.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.112e-05/1.524, allocations: 22.41 kB / 0.7738 GB, free: 128.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02804/1.552, allocations: 16.97 MB / 0.7903 GB, free: 116.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.861e-05/1.552, allocations: 4 kB / 0.7903 GB, free: 116.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003009/1.555, allocations: 0.6854 MB / 0.791 GB, free: 116.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003005/1.558, allocations: 1.182 MB / 0.7922 GB, free: 115.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006013/1.559, allocations: 107.7 kB / 0.7923 GB, free: 115.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01508/1.574, allocations: 17.38 MB / 0.8092 GB, free: 97.15 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/1.574, allocations: 7.938 kB / 0.8092 GB, free: 97.14 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01357/1.587, allocations: 10.28 MB / 0.8193 GB, free: 86.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003194/1.591, allocations: 1.119 MB / 0.8204 GB, free: 85.75 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001157/1.592, allocations: 83.94 kB / 0.8204 GB, free: 85.67 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002503/1.594, allocations: 211.9 kB / 0.8206 GB, free: 85.46 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007224/1.595, allocations: 313.9 kB / 0.8209 GB, free: 85.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002586/1.595, allocations: 124 kB / 0.8211 GB, free: 85.04 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005008/1.6, allocations: 3.481 MB / 0.8245 GB, free: 81.57 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.51e-07/1.6, allocations: 4 kB / 0.8245 GB, free: 81.57 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007063/1.607, allocations: 1.956 MB / 0.8264 GB, free: 79.62 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 (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.0008471/1.608, allocations: 272.4 kB / 0.8266 GB, free: 79.35 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01031/1.619, allocations: 7.71 MB / 0.8342 GB, free: 71.57 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.795e-06/1.619, allocations: 384 / 0.8342 GB, free: 71.57 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005467/1.624, allocations: 4.083 MB / 0.8382 GB, free: 67.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005916/1.63, allocations: 1.45 MB / 0.8396 GB, free: 66 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02914/1.659, allocations: 20.35 MB / 0.8594 GB, free: 45.59 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006898/1.666, allocations: 7.373 MB / 0.8666 GB, free: 38.18 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004976/1.671, allocations: 2.001 MB / 0.8686 GB, free: 36.17 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001033/1.672, allocations: 407.4 kB / 0.869 GB, free: 35.77 MB / 494.1 MB Notification: Performance of SimCode: time 7.01e-07/1.672, allocations: 4 kB / 0.869 GB, free: 35.77 MB / 494.1 MB Notification: Performance of Templates: time 0.2858/1.958, allocations: 77.92 MB / 0.9451 GB, free: 125.9 MB / 494.1 MB 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 -s gbode -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