Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.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_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_trunk_cpp_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_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001448/0.001448, allocations: 196.1 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.543/1.543, allocations: 226.5 MB / 244.7 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008207/0.0008209, allocations: 100.7 kB / 296.8 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002425/0.0002425, allocations: 4 kB / 356.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.236, allocations: 51.3 MB / 408.1 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01062/0.2467, allocations: 14.51 MB / 422.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008465/0.2552, allocations: 5.193 MB / 427.8 MB, free: 7.965 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002873/0.2581, allocations: 95.62 kB / 427.9 MB, free: 7.871 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002652/0.2608, allocations: 0.8582 MB / 428.7 MB, free: 7.008 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003482/0.2643, allocations: 1.088 MB / 429.8 MB, free: 5.914 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001815/0.2661, allocations: 0.686 MB / 430.5 MB, free: 5.227 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004089/0.2702, allocations: 3.92 MB / 434.4 MB, free: 1.293 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003365/0.2736, allocations: 3.039 MB / 437.5 MB, free: 14.18 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002161/0.2757, allocations: 1.299 MB / 438.8 MB, free: 12.88 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00233/0.2781, allocations: 1.731 MB / 440.5 MB, free: 11.14 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003939/0.2785, allocations: 204 kB / 440.7 MB, free: 10.94 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001203/0.2797, allocations: 451.7 kB / 441.1 MB, free: 10.5 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007679/0.2805, allocations: 0.8798 MB / 442 MB, free: 9.617 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00194/0.2824, allocations: 1.766 MB / 443.8 MB, free: 7.836 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006289/0.2887, allocations: 5.621 MB / 449.4 MB, free: 2.199 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.2888, allocations: 0 / 449.4 MB, free: 2.199 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2888, allocations: 0 / 449.4 MB, free: 2.199 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002041/0.289, allocations: 0 / 449.4 MB, free: 2.199 MB / 314.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.01043/0.2994, allocations: 3.947 MB / 453.3 MB, free: 14.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.2995, allocations: 12.02 kB / 453.4 MB, free: 14.17 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003374/0.3029, allocations: 0.6869 MB / 454 MB, free: 13.48 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004613/0.3075, allocations: 2.447 MB / 456.5 MB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002231/0.3078, allocations: 271.4 kB / 456.8 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006162/0.3084, allocations: 347.8 kB / 457.1 MB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007634/0.316, allocations: 4.445 MB / 461.5 MB, free: 5.871 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.019e-05/0.3161, allocations: 3.938 kB / 461.5 MB, free: 5.867 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002903/0.3164, allocations: 140 kB / 461.7 MB, free: 5.73 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001504/0.3166, allocations: 162.8 kB / 461.8 MB, free: 5.57 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006801/0.3234, allocations: 3.728 MB / 465.6 MB, free: 1.836 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02498/0.3484, allocations: 14.73 MB / 480.3 MB, free: 2.641 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004918/0.3534, allocations: 5.607 MB / 485.9 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002657/0.3561, allocations: 1.599 MB / 487.5 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006972/0.3631, allocations: 4.218 MB / 491.7 MB, free: 6.324 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.6e-05/0.3631, allocations: 47.81 kB / 491.8 MB, free: 6.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=128): time 3.677e-06/0.3631, allocations: 4 kB / 491.8 MB, free: 6.266 MB / 362.7 MB Notification: Performance of matching and sorting (n=132): time 0.009862/0.373, allocations: 5.675 MB / 497.5 MB, free: 432 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.618e-05/0.3731, allocations: 80.58 kB / 497.5 MB, free: 340 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00293/0.376, allocations: 2.103 MB / 499.6 MB, free: 14.19 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001066/0.3762, allocations: 49.7 kB / 499.7 MB, free: 14.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009981/0.3772, allocations: 1.661 MB / 0.4896 GB, free: 12.46 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000334/0.3775, allocations: 465.3 kB / 0.49 GB, free: 12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.018e-05/0.3776, allocations: 40 kB / 0.4901 GB, free: 11.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.3777, allocations: 369.9 kB / 0.4904 GB, free: 11.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001094/0.3788, allocations: 0.7262 MB / 0.4911 GB, free: 10.87 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00143/0.3803, allocations: 1.356 MB / 0.4925 GB, free: 9.223 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002734/0.383, allocations: 2.25 MB / 0.4947 GB, free: 6.691 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.987e-06/0.3831, allocations: 4 kB / 0.4947 GB, free: 6.688 MB / 378.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003997/0.3871, allocations: 2.588 MB / 0.4972 GB, free: 4.062 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.919e-05/0.3871, allocations: 16 kB / 0.4972 GB, free: 4.047 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.427e-05/0.3871, allocations: 20 kB / 0.4972 GB, free: 4.027 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004752/0.3876, allocations: 191 kB / 0.4974 GB, free: 3.832 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001523/0.3891, allocations: 455.2 kB / 0.4978 GB, free: 3.387 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1972/0.5864, allocations: 3.502 MB / 0.5013 GB, free: 87.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002051/0.5885, allocations: 114.3 kB / 0.5014 GB, free: 87.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002581/0.5887, allocations: 85.16 kB / 0.5014 GB, free: 87.27 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 92 * 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 (224): * Single equations (assignments): 221 * 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%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002362/0.5911, allocations: 1.049 MB / 0.5025 GB, free: 87.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005228/0.5916, allocations: 220.3 kB / 0.5027 GB, free: 87.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003609/0.5952, allocations: 2.265 MB / 0.5049 GB, free: 86.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.5953, allocations: 17.56 kB / 0.5049 GB, free: 86.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.5953, allocations: 3.938 kB / 0.5049 GB, free: 86.21 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.637e-05/0.5953, allocations: 7.031 kB / 0.5049 GB, free: 86.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00799/0.6033, allocations: 5.301 MB / 0.5101 GB, free: 83.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.6033, allocations: 0 / 0.5101 GB, free: 83.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009035/0.6042, allocations: 222.9 kB / 0.5103 GB, free: 83.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008422/0.6051, allocations: 325.8 kB / 0.5106 GB, free: 83.71 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.501e-05/0.6052, allocations: 35.78 kB / 0.5107 GB, free: 83.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006061/0.6113, allocations: 7.542 MB / 0.518 GB, free: 77.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.6113, allocations: 6.625 kB / 0.518 GB, free: 77.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004361/0.6157, allocations: 3.279 MB / 0.5212 GB, free: 75.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009052/0.6166, allocations: 468 kB / 0.5217 GB, free: 75.49 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002255/0.6168, allocations: 29.97 kB / 0.5217 GB, free: 75.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008756/0.6177, allocations: 70.83 kB / 0.5218 GB, free: 75.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002231/0.618, allocations: 99.33 kB / 0.5219 GB, free: 75.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.077e-05/0.618, allocations: 41.67 kB / 0.5219 GB, free: 75.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002171/0.6202, allocations: 1.42 MB / 0.5233 GB, free: 74.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6202, allocations: 0 / 0.5233 GB, free: 74.86 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002211/0.6224, allocations: 0.5761 MB / 0.5239 GB, free: 74.81 MB / 378.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 105 * 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%) 8,(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.0004183/0.6229, allocations: 178.5 kB / 0.524 GB, free: 74.69 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002805/0.6257, allocations: 2.14 MB / 0.5261 GB, free: 73.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.6257, allocations: 4.125 kB / 0.5261 GB, free: 73.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001592/0.6273, allocations: 1.41 MB / 0.5275 GB, free: 71.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002604/0.6299, allocations: 0.5315 MB / 0.528 GB, free: 71.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00834/0.6383, allocations: 7.391 MB / 0.5352 GB, free: 63.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001491/0.6398, allocations: 2.373 MB / 0.5376 GB, free: 61.24 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005755/0.6404, allocations: 167.4 kB / 0.5377 GB, free: 61.08 MB / 378.7 MB Notification: Performance of SimCode: time 7.71e-07/0.6404, allocations: 0 / 0.5377 GB, free: 61.08 MB / 378.7 MB Notification: Performance of Templates: time 0.08963/0.73, allocations: 99.64 MB / 0.635 GB, free: 9.469 MB / 426.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches