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_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008883/0.0008884, allocations: 91.73 kB / 16.3 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009399/0.00094, allocations: 185.4 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.265/1.265, allocations: 223.2 MB / 241.1 MB, free: 5.441 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002249/0.0002249, allocations: 5.625 kB / 300.7 MB, free: 6.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08408/0.08432, allocations: 50.42 MB / 351.2 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01181/0.09616, allocations: 12.27 MB / 363.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007893/0.1041, allocations: 4.835 MB / 368.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001955/0.1061, allocations: 83.62 kB / 368.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00226/0.1084, allocations: 0.9055 MB / 369.2 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003424/0.1118, allocations: 1.332 MB / 370.6 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001665/0.1135, allocations: 0.671 MB / 371.2 MB, free: 7.547 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003782/0.1173, allocations: 2.506 MB / 373.8 MB, free: 5.039 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002482/0.1198, allocations: 2.323 MB / 376.1 MB, free: 2.664 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00151/0.1213, allocations: 1.16 MB / 377.2 MB, free: 1.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001606/0.1229, allocations: 1.447 MB / 378.7 MB, free: 48 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003104/0.1232, allocations: 188 kB / 378.9 MB, free: 15.86 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008485/0.1241, allocations: 359.8 kB / 379.2 MB, free: 15.51 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000639/0.1247, allocations: 0.7592 MB / 380 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006041/0.1253, allocations: 0.6952 MB / 380.7 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004065/0.1294, allocations: 5.029 MB / 385.7 MB, free: 9.004 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.1294, allocations: 4 kB / 385.7 MB, free: 9 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1294, allocations: 0 / 385.7 MB, free: 9 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001202/0.1296, allocations: 0 / 385.7 MB, free: 9 MB / 318.1 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.007843/0.1374, allocations: 3.599 MB / 389.3 MB, free: 5.328 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.1375, allocations: 11.97 kB / 389.3 MB, free: 5.316 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002745/0.1402, allocations: 0.6241 MB / 389.9 MB, free: 4.688 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003824/0.1441, allocations: 2.156 MB / 392.1 MB, free: 2.477 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002062/0.1443, allocations: 250.2 kB / 392.3 MB, free: 2.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000435/0.1447, allocations: 311.9 kB / 392.6 MB, free: 1.926 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006782/0.1515, allocations: 3.996 MB / 396.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.635e-05/0.1516, allocations: 4 kB / 396.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000284/0.1519, allocations: 124 kB / 396.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001557/0.1521, allocations: 146.2 kB / 396.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005835/0.1579, allocations: 3.362 MB / 400.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01881/0.1767, allocations: 13.28 MB / 413.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003729/0.1805, allocations: 3.947 MB / 417.5 MB, free: 8.047 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004233/0.1847, allocations: 2.654 MB / 420.1 MB, free: 5.309 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.816e-05/0.1848, allocations: 51.5 kB / 420.2 MB, free: 5.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=113): time 2.986e-06/0.1848, allocations: 0 / 420.2 MB, free: 5.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=147): time 0.1733/0.3581, allocations: 6.043 MB / 426.2 MB, free: 60.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.617e-05/0.3582, allocations: 72.88 kB / 426.3 MB, free: 60.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003488/0.3617, allocations: 1.801 MB / 428.1 MB, free: 60.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003415/0.3621, allocations: 52.14 kB / 428.2 MB, free: 60.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001161/0.3632, allocations: 1.503 MB / 429.7 MB, free: 60.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004397/0.3637, allocations: 0.4956 MB / 430.2 MB, free: 59.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.267e-05/0.3638, allocations: 37.81 kB / 430.2 MB, free: 59.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.3639, allocations: 376.3 kB / 430.6 MB, free: 59.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.3652, allocations: 0.7792 MB / 431.3 MB, free: 59.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001477/0.3667, allocations: 1.374 MB / 432.7 MB, free: 58.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001691/0.3684, allocations: 1.015 MB / 433.7 MB, free: 58.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-05/0.3684, allocations: 6.938 kB / 433.7 MB, free: 58.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=239) (initialization): time 0.00516/0.3736, allocations: 2.496 MB / 436.2 MB, free: 58.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.28e-05/0.3736, allocations: 12.84 kB / 436.3 MB, free: 58.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.305e-05/0.3737, allocations: 20.44 kB / 436.3 MB, free: 58.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004119/0.3741, allocations: 122.3 kB / 436.4 MB, free: 58.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00182/0.3759, allocations: 486.6 kB / 436.9 MB, free: 58.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008614/0.3768, allocations: 1.312 MB / 438.2 MB, free: 57.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001528/0.3783, allocations: 118.6 kB / 438.3 MB, free: 57.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001354/0.3785, allocations: 84.53 kB / 438.4 MB, free: 57.14 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * 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 (236): * Single equations (assignments): 233 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0018/0.3803, allocations: 0.9836 MB / 439.4 MB, free: 56.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003584/0.3807, allocations: 205.4 kB / 439.6 MB, free: 56.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003053/0.3837, allocations: 2.001 MB / 441.6 MB, free: 55.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.888e-06/0.3837, allocations: 11.84 kB / 441.6 MB, free: 55.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3838, allocations: 0 / 441.6 MB, free: 55.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.275e-05/0.3838, allocations: 10.03 kB / 441.6 MB, free: 55.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006624/0.3904, allocations: 5.031 MB / 446.6 MB, free: 53.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.3904, allocations: 2.375 kB / 446.6 MB, free: 53.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001246/0.3917, allocations: 326.9 kB / 446.9 MB, free: 53.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002605/0.392, allocations: 92.48 kB / 447 MB, free: 53.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.142e-05/0.3921, allocations: 28.44 kB / 447.1 MB, free: 53.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00059/0.3927, allocations: 1.286 MB / 448.3 MB, free: 51.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3927, allocations: 0 / 448.3 MB, free: 51.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003685/0.3964, allocations: 3.28 MB / 451.6 MB, free: 50.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007416/0.3971, allocations: 452.8 kB / 452.1 MB, free: 49.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000223/0.3973, allocations: 27.84 kB / 452.1 MB, free: 49.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008469/0.3982, allocations: 82.39 kB / 452.2 MB, free: 49.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.3983, allocations: 98.27 kB / 452.3 MB, free: 49.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.332e-05/0.3984, allocations: 46.56 kB / 452.3 MB, free: 49.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001438/0.3999, allocations: 1.214 MB / 453.5 MB, free: 49.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3999, allocations: 3.531 kB / 453.5 MB, free: 49.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001526/0.4014, allocations: 0.5256 MB / 454.1 MB, free: 49.1 MB / 350.1 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 (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002759/0.4017, allocations: 164.4 kB / 454.2 MB, free: 48.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002715/0.4044, allocations: 2.239 MB / 456.5 MB, free: 47.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4044, allocations: 0 / 456.5 MB, free: 47.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.4056, allocations: 1.203 MB / 457.7 MB, free: 45.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001785/0.4074, allocations: 482.3 kB / 458.1 MB, free: 45.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007237/0.4147, allocations: 6.755 MB / 464.9 MB, free: 38.69 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001367/0.4161, allocations: 2.329 MB / 467.2 MB, free: 36.33 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001529/0.4176, allocations: 0.5052 MB / 467.7 MB, free: 35.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003752/0.418, allocations: 157.9 kB / 467.9 MB, free: 35.67 MB / 350.1 MB Notification: Performance of SimCode: time 9.61e-07/0.418, allocations: 0 / 467.9 MB, free: 35.67 MB / 350.1 MB Notification: Performance of Templates: time 0.04023/0.4582, allocations: 23.56 MB / 491.4 MB, free: 12.37 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches