Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001747/0.001747, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.257/1.257, allocations: 226.8 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001042/0.001042, allocations: 103.7 kB / 296.7 MB, free: 6.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000928/0.0009281, allocations: 51.92 kB / 356.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1816/0.1825, allocations: 50.45 MB / 407.1 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01219/0.1948, allocations: 15.57 MB / 422.6 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007932/0.2027, allocations: 5.282 MB / 427.9 MB, free: 6.891 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002855/0.2056, allocations: 95.62 kB / 428 MB, free: 6.797 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003093/0.2088, allocations: 0.9559 MB / 429 MB, free: 5.836 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003635/0.2124, allocations: 1.119 MB / 430.1 MB, free: 4.711 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002204/0.2147, allocations: 0.8382 MB / 430.9 MB, free: 3.871 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004219/0.2189, allocations: 3.841 MB / 434.8 MB, free: 20 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004091/0.223, allocations: 2.783 MB / 437.6 MB, free: 13.16 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002164/0.2252, allocations: 1.455 MB / 439 MB, free: 11.7 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002947/0.2282, allocations: 1.926 MB / 440.9 MB, free: 9.77 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008418/0.229, allocations: 292 kB / 441.2 MB, free: 9.484 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001637/0.2307, allocations: 0.5271 MB / 441.7 MB, free: 8.957 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001092/0.2318, allocations: 0.9422 MB / 442.7 MB, free: 8.012 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002583/0.2344, allocations: 1.85 MB / 444.5 MB, free: 6.152 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006311/0.2407, allocations: 6.098 MB / 450.6 MB, free: 36 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.2407, allocations: 0 / 450.6 MB, free: 36 kB / 314.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2408, allocations: 0 / 450.6 MB, free: 36 kB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001604/0.2409, allocations: 4 kB / 450.6 MB, free: 32 kB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01029/0.2512, allocations: 4.261 MB / 454.9 MB, free: 11.69 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.2513, allocations: 8.031 kB / 454.9 MB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002782/0.2541, allocations: 0.6289 MB / 455.5 MB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004034/0.2581, allocations: 2.206 MB / 457.7 MB, free: 8.789 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000185/0.2583, allocations: 242.8 kB / 458 MB, free: 8.551 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004738/0.2588, allocations: 311.8 kB / 458.3 MB, free: 8.246 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006461/0.2653, allocations: 4.047 MB / 462.3 MB, free: 4.137 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.297e-05/0.2654, allocations: 7.984 kB / 462.3 MB, free: 4.129 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002643/0.2656, allocations: 124 kB / 462.5 MB, free: 4.008 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001277/0.2658, allocations: 150.2 kB / 462.6 MB, free: 3.859 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005778/0.2716, allocations: 3.386 MB / 466 MB, free: 476 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02017/0.2918, allocations: 13.49 MB / 479.5 MB, free: 2.484 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003937/0.2957, allocations: 4.275 MB / 483.8 MB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001544/0.2973, allocations: 1.035 MB / 484.8 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004261/0.3016, allocations: 2.874 MB / 487.7 MB, free: 9.633 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.926e-05/0.3016, allocations: 43.56 kB / 487.7 MB, free: 9.582 MB / 362.7 MB Notification: Performance of pre-optimization done (n=108): time 2.765e-06/0.3016, allocations: 0 / 487.7 MB, free: 9.582 MB / 362.7 MB Notification: Performance of matching and sorting (n=142): time 0.01047/0.3121, allocations: 5.987 MB / 493.7 MB, free: 3.504 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.908e-05/0.3122, allocations: 68.66 kB / 493.8 MB, free: 3.422 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002454/0.3146, allocations: 1.909 MB / 495.7 MB, free: 1.469 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.967e-05/0.3147, allocations: 49.7 kB / 495.7 MB, free: 1.414 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008701/0.3156, allocations: 1.505 MB / 497.2 MB, free: 15.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003238/0.3159, allocations: 496.9 kB / 497.7 MB, free: 15.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004672/0.3164, allocations: 335.2 kB / 498 MB, free: 15.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.573e-05/0.3165, allocations: 301.1 kB / 498.3 MB, free: 14.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001116/0.3176, allocations: 0.773 MB / 499.1 MB, free: 13.99 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001435/0.3191, allocations: 1.371 MB / 0.4887 GB, free: 12.35 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002707/0.3218, allocations: 2.323 MB / 0.491 GB, free: 9.762 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.016e-05/0.3218, allocations: 8 kB / 0.491 GB, free: 9.754 MB / 378.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003623/0.3254, allocations: 2.47 MB / 0.4934 GB, free: 7.266 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.3255, allocations: 14.81 kB / 0.4935 GB, free: 7.254 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.039e-05/0.3255, allocations: 24.06 kB / 0.4935 GB, free: 7.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003317/0.3258, allocations: 118.5 kB / 0.4936 GB, free: 7.105 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001676/0.3275, allocations: 483.2 kB / 0.494 GB, free: 6.633 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008921/0.3284, allocations: 1.307 MB / 0.4953 GB, free: 5.188 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001298/0.3297, allocations: 116 kB / 0.4954 GB, free: 5.074 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/0.3299, allocations: 83.98 kB / 0.4955 GB, free: 4.992 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001401/0.3313, allocations: 0.9827 MB / 0.4965 GB, free: 4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002902/0.3316, allocations: 205.4 kB / 0.4967 GB, free: 3.797 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003112/0.3347, allocations: 1.97 MB / 0.4986 GB, free: 1.801 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/0.3347, allocations: 16 kB / 0.4986 GB, free: 1.785 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.3347, allocations: 3.938 kB / 0.4986 GB, free: 1.781 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.3347, allocations: 3.984 kB / 0.4986 GB, free: 1.777 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1657/0.5004, allocations: 5.001 MB / 0.5035 GB, free: 89.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.774e-06/0.5005, allocations: 7.5 kB / 0.5035 GB, free: 89.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001292/0.5018, allocations: 302.3 kB / 0.5038 GB, free: 89.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002749/0.5021, allocations: 102.6 kB / 0.5039 GB, free: 89.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-05/0.5022, allocations: 30.23 kB / 0.5039 GB, free: 89.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005961/0.5028, allocations: 1.283 MB / 0.5052 GB, free: 88.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.5028, allocations: 1.375 kB / 0.5052 GB, free: 88.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.013/0.5158, allocations: 10.57 MB / 0.5155 GB, free: 82.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007171/0.5165, allocations: 452.2 kB / 0.5159 GB, free: 82.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001999/0.5167, allocations: 32.38 kB / 0.516 GB, free: 82.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009205/0.5177, allocations: 78.17 kB / 0.516 GB, free: 82.15 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.5178, allocations: 89.67 kB / 0.5161 GB, free: 82.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.353e-05/0.5179, allocations: 39.38 kB / 0.5162 GB, free: 82.12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001629/0.5196, allocations: 1.3 MB / 0.5174 GB, free: 81.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5196, allocations: 1 kB / 0.5174 GB, free: 81.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001916/0.5215, allocations: 0.6915 MB / 0.5181 GB, free: 81.54 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003382/0.5218, allocations: 185.2 kB / 0.5183 GB, free: 81.42 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00269/0.5245, allocations: 2.202 MB / 0.5204 GB, free: 80.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.5246, allocations: 1.906 kB / 0.5204 GB, free: 80.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001233/0.5258, allocations: 1.177 MB / 0.5216 GB, free: 79.31 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002298/0.5281, allocations: 0.4886 MB / 0.5221 GB, free: 78.93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009055/0.5372, allocations: 8.1 MB / 0.53 GB, free: 70.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001386/0.5386, allocations: 2.295 MB / 0.5322 GB, free: 68.52 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001671/0.5403, allocations: 0.5289 MB / 0.5327 GB, free: 67.99 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004321/0.5407, allocations: 155.4 kB / 0.5329 GB, free: 67.84 MB / 378.7 MB Notification: Performance of SimCode: time 1.192e-06/0.5407, allocations: 3.938 kB / 0.5329 GB, free: 67.83 MB / 378.7 MB Notification: Performance of Templates: time 0.03869/0.5794, allocations: 27.74 MB / 0.56 GB, free: 40.34 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches