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.001411/0.001411, allocations: 115.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001558/0.001558, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 56.41 kB / 308.4 MB, free: 15.84 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1284, allocations: 50.54 MB / 358.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.2669/0.3953, allocations: 37.9 MB / 396.8 MB, free: 14.65 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02676/0.4221, allocations: 10.29 MB / 407.1 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01154/0.4337, allocations: 279.2 kB / 407.4 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02333/0.4571, allocations: 9.114 MB / 416.5 MB, free: 268 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01806/0.4752, allocations: 3.907 MB / 420.4 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009112/0.4843, allocations: 2.426 MB / 422.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02435/0.5087, allocations: 14.23 MB / 437.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04175/0.5505, allocations: 25.62 MB / 462.7 MB, free: 3.449 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01457/0.5651, allocations: 7.188 MB / 469.9 MB, free: 12.24 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01577/0.5809, allocations: 8.047 MB / 477.9 MB, free: 4.168 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006937/0.5879, allocations: 2.027 MB / 480 MB, free: 2.141 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009442/0.5974, allocations: 2.445 MB / 482.4 MB, free: 15.69 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008115/0.6055, allocations: 4.033 MB / 486.4 MB, free: 11.65 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01896/0.6246, allocations: 7.817 MB / 494.3 MB, free: 3.805 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03564/0.6602, allocations: 26.99 MB / 0.509 GB, free: 8.738 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.6603, allocations: 0 / 0.509 GB, free: 8.738 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.6603, allocations: 0 / 0.509 GB, free: 8.738 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000827/0.6611, allocations: 0 / 0.509 GB, free: 8.738 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.05407/0.7152, allocations: 15.89 MB / 0.5245 GB, free: 8.73 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.7153, allocations: 8.031 kB / 0.5246 GB, free: 8.723 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03676/0.752, allocations: 6.455 MB / 0.5309 GB, free: 2.246 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5012/1.253, allocations: 8.591 MB / 0.5392 GB, free: 123.9 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001633/1.255, allocations: 0.9019 MB / 0.5401 GB, free: 123.5 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007288/1.262, allocations: 1.193 MB / 0.5413 GB, free: 123.1 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05825/1.321, allocations: 18.77 MB / 0.5596 GB, free: 115.6 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004622/1.321, allocations: 19.12 kB / 0.5596 GB, free: 115.6 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003046/1.324, allocations: 0.4914 MB / 0.5601 GB, free: 115.2 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005392/1.325, allocations: 0.6546 MB / 0.5608 GB, free: 115.1 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03296/1.358, allocations: 17.01 MB / 0.5774 GB, free: 103 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08938/1.447, allocations: 63.19 MB / 0.6391 GB, free: 38.47 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02064/1.468, allocations: 30.01 MB / 0.6684 GB, free: 4.926 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005699/1.473, allocations: 4.04 MB / 0.6723 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02105/1.495, allocations: 10.37 MB / 0.6825 GB, free: 6.473 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.194e-05/1.495, allocations: 81.73 kB / 0.6825 GB, free: 6.383 MB / 462.1 MB Notification: Performance of pre-optimization done (n=402): time 5.601e-06/1.495, allocations: 0 / 0.6825 GB, free: 6.383 MB / 462.1 MB Notification: Performance of matching and sorting (n=412): time 0.04507/1.54, allocations: 20.11 MB / 0.7022 GB, free: 1.941 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.964e-05/1.54, allocations: 120.4 kB / 0.7023 GB, free: 1.801 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009178/1.549, allocations: 5.191 MB / 0.7074 GB, free: 12.62 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007402/1.55, allocations: 93.7 kB / 0.7074 GB, free: 12.53 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00362/1.553, allocations: 5.363 MB / 0.7127 GB, free: 7.133 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001669/1.555, allocations: 1.421 MB / 0.7141 GB, free: 5.723 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002049/1.557, allocations: 1.251 MB / 0.7153 GB, free: 4.461 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/1.557, allocations: 305.1 kB / 0.7156 GB, free: 4.16 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004529/1.562, allocations: 2.843 MB / 0.7184 GB, free: 1.312 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2109/1.773, allocations: 5.346 MB / 0.7236 GB, free: 153.9 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01152/1.784, allocations: 8.735 MB / 0.7321 GB, free: 148.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001951/1.785, allocations: 22.97 kB / 0.7321 GB, free: 148.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01842/1.803, allocations: 9.679 MB / 0.7416 GB, free: 145.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001012/1.803, allocations: 39.88 kB / 0.7416 GB, free: 145.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001564/1.803, allocations: 83.36 kB / 0.7417 GB, free: 145.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00343/1.807, allocations: 1.119 MB / 0.7428 GB, free: 144.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006531/1.813, allocations: 1.451 MB / 0.7442 GB, free: 144.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01483/1.828, allocations: 13.48 MB / 0.7574 GB, free: 135.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005472/1.834, allocations: 361.5 kB / 0.7577 GB, free: 135.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001091/1.835, allocations: 320.6 kB / 0.758 GB, free: 135.1 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.007091/1.842, allocations: 4.237 MB / 0.7622 GB, free: 133 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001404/1.843, allocations: 0.5349 MB / 0.7627 GB, free: 133 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01051/1.854, allocations: 7.086 MB / 0.7696 GB, free: 130 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005384/1.859, allocations: 4.225 MB / 0.7737 GB, free: 128.3 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.287e-05/1.859, allocations: 15.03 kB / 0.7737 GB, free: 128.3 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.346e-05/1.859, allocations: 19.08 kB / 0.7738 GB, free: 128.3 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02708/1.886, allocations: 16.97 MB / 0.7903 GB, free: 116.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-05/1.886, allocations: 8.719 kB / 0.7903 GB, free: 116.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00285/1.889, allocations: 0.6871 MB / 0.791 GB, free: 115.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003032/1.892, allocations: 1.182 MB / 0.7922 GB, free: 114.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004919/1.893, allocations: 104 kB / 0.7923 GB, free: 114.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01453/1.907, allocations: 17.38 MB / 0.8092 GB, free: 96.75 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/1.907, allocations: 7.938 kB / 0.8092 GB, free: 96.74 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01296/1.92, allocations: 10.27 MB / 0.8193 GB, free: 86.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003305/1.924, allocations: 1.119 MB / 0.8204 GB, free: 85.35 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001135/1.925, allocations: 83.94 kB / 0.8204 GB, free: 85.27 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002594/1.928, allocations: 219.8 kB / 0.8207 GB, free: 85.05 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006424/1.928, allocations: 307.3 kB / 0.821 GB, free: 84.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002601/1.928, allocations: 124 kB / 0.8211 GB, free: 84.63 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004926/1.933, allocations: 3.481 MB / 0.8245 GB, free: 81.17 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.01e-07/1.933, allocations: 0 / 0.8245 GB, free: 81.17 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007661/1.941, allocations: 1.963 MB / 0.8264 GB, free: 79.21 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.0008656/1.942, allocations: 276.2 kB / 0.8266 GB, free: 78.95 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01025/1.952, allocations: 7.7 MB / 0.8342 GB, free: 71.16 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/1.952, allocations: 4 kB / 0.8342 GB, free: 71.16 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005558/1.958, allocations: 4.079 MB / 0.8382 GB, free: 67 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006163/1.964, allocations: 1.454 MB / 0.8396 GB, free: 65.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03543/1.999, allocations: 20.36 MB / 0.8595 GB, free: 45.18 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008089/2.008, allocations: 7.373 MB / 0.8667 GB, free: 37.77 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004875/2.013, allocations: 2.001 MB / 0.8686 GB, free: 35.77 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001048/2.014, allocations: 403.4 kB / 0.869 GB, free: 35.37 MB / 494.1 MB Notification: Performance of SimCode: time 6.01e-07/2.014, allocations: 0 / 0.869 GB, free: 35.37 MB / 494.1 MB Notification: Performance of Templates: time 0.289/2.303, allocations: 77.92 MB / 0.9451 GB, free: 125.4 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 cvode -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