Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00107/0.001069, allocations: 175.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.315/1.315, allocations: 205.4 MB / 222.9 MB, free: 8.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000741/0.0007411, allocations: 90.36 kB / 271.2 MB, free: 8.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002932/0.0002932, allocations: 12 kB / 327.5 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2105/0.2108, allocations: 47.58 MB / 375.1 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01128/0.2222, allocations: 13.94 MB / 389 MB, free: 34.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008733/0.2309, allocations: 5.018 MB / 394.1 MB, free: 29.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002463/0.2334, allocations: 91.56 kB / 394.2 MB, free: 29.6 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002427/0.2359, allocations: 0.8465 MB / 395 MB, free: 28.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003338/0.2392, allocations: 1.1 MB / 396.1 MB, free: 27.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001681/0.2409, allocations: 0.6662 MB / 396.8 MB, free: 26.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003836/0.2448, allocations: 3.869 MB / 400.6 MB, free: 23.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003565/0.2484, allocations: 2.971 MB / 403.6 MB, free: 20.06 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001726/0.2501, allocations: 1.292 MB / 404.9 MB, free: 18.76 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002225/0.2523, allocations: 1.735 MB / 406.6 MB, free: 17.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004163/0.2528, allocations: 208 kB / 406.8 MB, free: 16.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001172/0.2539, allocations: 431.7 kB / 407.3 MB, free: 16.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006107/0.2546, allocations: 0.8992 MB / 408.2 MB, free: 15.49 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001474/0.2561, allocations: 1.759 MB / 409.9 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003557/0.2596, allocations: 5.575 MB / 415.5 MB, free: 8.129 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.2596, allocations: 4 kB / 415.5 MB, free: 8.125 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2596, allocations: 0 / 415.5 MB, free: 8.125 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001035/0.2598, allocations: 0 / 415.5 MB, free: 8.125 MB / 298.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.007316/0.2671, allocations: 3.921 MB / 419.4 MB, free: 4.133 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.2671, allocations: 12.03 kB / 419.4 MB, free: 4.121 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002754/0.2699, allocations: 0.6676 MB / 420.1 MB, free: 3.449 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003483/0.2734, allocations: 2.346 MB / 422.4 MB, free: 1.051 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001634/0.2736, allocations: 267.5 kB / 422.7 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004437/0.274, allocations: 347.8 kB / 423 MB, free: 460 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007063/0.2811, allocations: 4.441 MB / 427.5 MB, free: 11.95 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.942e-05/0.2812, allocations: 11.84 kB / 427.5 MB, free: 11.94 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002897/0.2815, allocations: 136 kB / 427.6 MB, free: 11.81 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000148/0.2817, allocations: 166.8 kB / 427.8 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006128/0.2878, allocations: 3.712 MB / 431.5 MB, free: 7.926 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0207/0.3085, allocations: 14.57 MB / 446.1 MB, free: 8.93 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004785/0.3133, allocations: 5.361 MB / 451.4 MB, free: 2.859 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001921/0.3153, allocations: 1.277 MB / 452.7 MB, free: 1.586 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006491/0.3218, allocations: 3.811 MB / 456.5 MB, free: 13.68 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.605e-05/0.3219, allocations: 51.88 kB / 456.6 MB, free: 13.62 MB / 346.7 MB Notification: Performance of pre-optimization done (n=127): time 3.406e-06/0.3219, allocations: 0 / 456.6 MB, free: 13.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=131): time 0.009174/0.3311, allocations: 5.467 MB / 462 MB, free: 7.984 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.291e-05/0.3311, allocations: 72.66 kB / 462.1 MB, free: 7.898 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002884/0.334, allocations: 2.086 MB / 464.2 MB, free: 5.777 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.481e-05/0.3341, allocations: 53.64 kB / 464.2 MB, free: 5.719 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001035/0.3352, allocations: 1.653 MB / 465.9 MB, free: 4.047 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003415/0.3355, allocations: 461.4 kB / 466.3 MB, free: 3.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.397e-05/0.3356, allocations: 36 kB / 466.4 MB, free: 3.555 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.3358, allocations: 377.9 kB / 466.8 MB, free: 3.18 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001075/0.3369, allocations: 0.7066 MB / 467.5 MB, free: 2.473 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001449/0.3383, allocations: 1.349 MB / 468.8 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002698/0.341, allocations: 2.219 MB / 471 MB, free: 14.33 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.057e-05/0.3411, allocations: 11.94 kB / 471 MB, free: 14.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.00373/0.3448, allocations: 2.498 MB / 473.5 MB, free: 11.79 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.731e-05/0.3448, allocations: 16 kB / 473.6 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.333e-05/0.3449, allocations: 20.5 kB / 473.6 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003614/0.3452, allocations: 150.4 kB / 473.7 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001538/0.3468, allocations: 463.3 kB / 474.2 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002322/0.3491, allocations: 3.082 MB / 477.3 MB, free: 7.785 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/0.3506, allocations: 111.9 kB / 477.4 MB, free: 7.676 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/0.3507, allocations: 84 kB / 477.4 MB, free: 7.594 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (227): * Single equations (assignments): 224 * 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.001791/0.3525, allocations: 1.051 MB / 478.5 MB, free: 6.531 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003287/0.3528, allocations: 221.3 kB / 478.7 MB, free: 6.312 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003439/0.3563, allocations: 2.165 MB / 480.9 MB, free: 4.094 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/0.3563, allocations: 12 kB / 480.9 MB, free: 4.082 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.3563, allocations: 4 kB / 480.9 MB, free: 4.078 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/0.3563, allocations: 11.91 kB / 480.9 MB, free: 4.066 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007431/0.3638, allocations: 5.169 MB / 486.1 MB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.3638, allocations: 0 / 486.1 MB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009485/0.3648, allocations: 231.9 kB / 486.3 MB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006643/0.3654, allocations: 279.1 kB / 486.6 MB, free: 14.24 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.619e-05/0.3655, allocations: 28 kB / 486.6 MB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006481/0.372, allocations: 7.107 MB / 493.7 MB, free: 6.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.3721, allocations: 4 kB / 493.7 MB, free: 6.566 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00501/0.3771, allocations: 3.164 MB / 496.9 MB, free: 3.309 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/0.3782, allocations: 466.2 kB / 497.3 MB, free: 2.832 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000261/0.3784, allocations: 36 kB / 497.4 MB, free: 2.797 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009226/0.3794, allocations: 67.92 kB / 497.4 MB, free: 2.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002133/0.3796, allocations: 96.8 kB / 497.5 MB, free: 2.637 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.776e-05/0.3797, allocations: 32 kB / 497.6 MB, free: 2.605 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002339/0.382, allocations: 1.423 MB / 499 MB, free: 1.164 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.382, allocations: 0 / 499 MB, free: 1.164 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002191/0.3842, allocations: 0.5665 MB / 499.5 MB, free: 0.5977 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.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 (112): * Single equations (assignments): 108 * 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.0003457/0.3846, allocations: 161.3 kB / 499.7 MB, free: 440 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003257/0.3879, allocations: 2.085 MB / 0.49 GB, free: 14.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.3879, allocations: 4 kB / 0.49 GB, free: 14.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00194/0.3898, allocations: 1.377 MB / 0.4914 GB, free: 12.87 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003296/0.3931, allocations: 0.5253 MB / 0.4919 GB, free: 12.35 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01185/0.405, allocations: 7.362 MB / 0.4991 GB, free: 4.922 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002158/0.4072, allocations: 2.369 MB / 0.5014 GB, free: 2.523 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007195/0.408, allocations: 171.4 kB / 0.5016 GB, free: 2.355 MB / 394.7 MB Notification: Performance of SimCode: time 1.082e-06/0.408, allocations: 0 / 0.5016 GB, free: 2.355 MB / 394.7 MB Notification: Performance of Templates: time 0.2345/0.6425, allocations: 99.09 MB / 0.5983 GB, free: 33.52 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches