Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.464/1.464, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008911/0.000891, allocations: 94.83 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.619e-05/1.625e-05, allocations: 0 / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09162/0.09166, allocations: 50.43 MB / 387.5 MB, free: 7.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4094/0.5011, allocations: 119.1 MB / 0.4947 GB, free: 7.676 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002692/0.5014, allocations: 95.94 kB / 0.4948 GB, free: 7.582 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4695/0.9709, allocations: 79.73 MB / 0.5727 GB, free: 98.19 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.078e-05/0.971, allocations: 2.906 kB / 0.5727 GB, free: 98.19 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005552/0.9716, allocations: 95.12 kB / 0.5728 GB, free: 98.18 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01242/0.984, allocations: 3.457 MB / 0.5761 GB, free: 96.76 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/0.9841, allocations: 7.844 kB / 0.5761 GB, free: 96.76 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00443/0.9885, allocations: 0.6453 MB / 0.5768 GB, free: 96.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009452/0.998, allocations: 3.368 MB / 0.5801 GB, free: 95.95 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002501/0.9983, allocations: 113.2 kB / 0.5802 GB, free: 95.95 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001535/0.9999, allocations: 213.6 kB / 0.5804 GB, free: 95.95 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0099/1.01, allocations: 3.198 MB / 0.5835 GB, free: 95.93 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01497/1.025, allocations: 3.821 MB / 0.5872 GB, free: 95.12 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002448/1.025, allocations: 9.969 kB / 0.5872 GB, free: 95.12 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001218/1.026, allocations: 0 / 0.5872 GB, free: 95.12 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001918/1.027, allocations: 163.3 kB / 0.5874 GB, free: 95.11 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02966/1.056, allocations: 13.91 MB / 0.601 GB, free: 87.56 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004611/1.061, allocations: 5.329 MB / 0.6062 GB, free: 82.81 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001765/1.063, allocations: 1.212 MB / 0.6074 GB, free: 82.36 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006432/1.069, allocations: 3.868 MB / 0.6111 GB, free: 80.34 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/1.069, allocations: 43.62 kB / 0.6112 GB, free: 80.29 MB / 426.7 MB Notification: Performance of pre-optimization done (n=133): time 3.697e-06/1.069, allocations: 7.75 kB / 0.6112 GB, free: 80.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=137): time 0.008282/1.078, allocations: 4.331 MB / 0.6154 GB, free: 78.06 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.861e-05/1.078, allocations: 71.44 kB / 0.6155 GB, free: 77.99 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002455/1.08, allocations: 1.547 MB / 0.617 GB, free: 77.33 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001331/1.08, allocations: 25.7 kB / 0.617 GB, free: 77.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009374/1.081, allocations: 1.654 MB / 0.6186 GB, free: 76.03 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003693/1.082, allocations: 466.2 kB / 0.6191 GB, free: 75.67 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.454e-05/1.082, allocations: 0 / 0.6191 GB, free: 75.67 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001232/1.082, allocations: 379.7 kB / 0.6195 GB, free: 75.34 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008535/1.083, allocations: 0.6734 MB / 0.6201 GB, free: 75.06 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001114/1.084, allocations: 1.272 MB / 0.6214 GB, free: 74 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001444/1.085, allocations: 0.998 MB / 0.6223 GB, free: 73.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/1.085, allocations: 3.969 kB / 0.6223 GB, free: 73.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.003586/1.089, allocations: 2.365 MB / 0.6246 GB, free: 72.61 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.354e-05/1.089, allocations: 16.25 kB / 0.6247 GB, free: 72.61 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.591e-05/1.089, allocations: 26.58 kB / 0.6247 GB, free: 72.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003666/1.089, allocations: 139 kB / 0.6248 GB, free: 72.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001569/1.091, allocations: 472.8 kB / 0.6253 GB, free: 72.51 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001726/1.093, allocations: 2.956 MB / 0.6282 GB, free: 69.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001922/1.095, allocations: 81.25 kB / 0.6282 GB, free: 69.72 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/1.095, allocations: 86.41 kB / 0.6283 GB, free: 69.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (229): * Single equations (assignments): 226 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002798/1.095, allocations: 169.5 kB / 0.6285 GB, free: 69.54 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002828/1.095, allocations: 204.3 kB / 0.6287 GB, free: 69.43 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003508/1.099, allocations: 2.145 MB / 0.6308 GB, free: 68.44 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.188e-05/1.099, allocations: 15.09 kB / 0.6308 GB, free: 68.44 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/1.099, allocations: 3.75 kB / 0.6308 GB, free: 68.44 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.368e-05/1.099, allocations: 6.656 kB / 0.6308 GB, free: 68.44 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007578/1.106, allocations: 4.776 MB / 0.6355 GB, free: 64.72 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/1.106, allocations: 7.938 kB / 0.6355 GB, free: 64.71 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/1.108, allocations: 239.4 kB / 0.6357 GB, free: 64.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006149/1.108, allocations: 271.3 kB / 0.6359 GB, free: 64.29 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.207e-05/1.108, allocations: 11.7 kB / 0.636 GB, free: 64.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00454/1.113, allocations: 6.83 MB / 0.6426 GB, free: 57.32 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/1.113, allocations: 7.125 kB / 0.6426 GB, free: 57.31 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004404/1.117, allocations: 3.332 MB / 0.6459 GB, free: 54.13 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001117/1.118, allocations: 446.3 kB / 0.6463 GB, free: 53.73 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002709/1.119, allocations: 8 kB / 0.6463 GB, free: 53.72 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009544/1.12, allocations: 65.62 kB / 0.6464 GB, free: 53.68 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002005/1.12, allocations: 94.83 kB / 0.6465 GB, free: 53.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.716e-05/1.12, allocations: 39.89 kB / 0.6465 GB, free: 53.59 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001694/1.122, allocations: 1.159 MB / 0.6476 GB, free: 52.52 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.71e-07/1.122, allocations: 0 / 0.6476 GB, free: 52.52 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002318/1.124, allocations: 0.5273 MB / 0.6482 GB, free: 52 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006336/1.125, allocations: 442.1 kB / 0.6486 GB, free: 51.64 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00265/1.127, allocations: 1.998 MB / 0.6505 GB, free: 49.73 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.197e-06/1.127, allocations: 384 / 0.6505 GB, free: 49.73 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001673/1.129, allocations: 1.33 MB / 0.6518 GB, free: 48.46 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00277/1.132, allocations: 428.5 kB / 0.6522 GB, free: 48.12 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009246/1.141, allocations: 4.784 MB / 0.6569 GB, free: 43.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00184/1.143, allocations: 2.478 MB / 0.6593 GB, free: 41.87 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001905/1.145, allocations: 0.4961 MB / 0.6598 GB, free: 41.53 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004276/1.145, allocations: 149.9 kB / 0.66 GB, free: 41.39 MB / 426.7 MB Notification: Performance of SimCode: time 1.122e-06/1.145, allocations: 3.938 kB / 0.66 GB, free: 41.39 MB / 426.7 MB Notification: Performance of Templates: time 0.04122/1.186, allocations: 23.9 MB / 0.6833 GB, free: 18.22 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches