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.001288/0.001288, allocations: 110.5 kB / 17.75 MB, free: 5.332 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.001273/0.001273, allocations: 187 kB / 18.68 MB, free: 4.406 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.297/1.297, allocations: 222.9 MB / 242.4 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009462/0.0009462, allocations: 47.94 kB / 352 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2106/0.2116, allocations: 49.43 MB / 401.4 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01518/0.2268, allocations: 15.18 MB / 416.6 MB, free: 9.773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007973/0.2348, allocations: 5.082 MB / 421.7 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001725/0.2365, allocations: 95.62 kB / 421.8 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002635/0.2392, allocations: 1.13 MB / 422.9 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003257/0.2425, allocations: 1.313 MB / 424.2 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001974/0.2445, allocations: 0.8957 MB / 425.1 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003792/0.2483, allocations: 3.612 MB / 428.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00396/0.2522, allocations: 3.306 MB / 432 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002074/0.2543, allocations: 1.729 MB / 433.8 MB, free: 8.488 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002781/0.2571, allocations: 2.051 MB / 435.8 MB, free: 6.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008946/0.258, allocations: 487.9 kB / 436.3 MB, free: 5.953 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001516/0.2596, allocations: 0.6795 MB / 437 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001079/0.2607, allocations: 1.138 MB / 438.1 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00189/0.2626, allocations: 2.05 MB / 440.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005082/0.2676, allocations: 6.266 MB / 446.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2677, allocations: 0 / 446.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2677, allocations: 4 kB / 446.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.871e-05/0.2677, allocations: 0 / 446.4 MB, free: 11.79 MB / 366.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.00846/0.2762, allocations: 4.242 MB / 450.7 MB, free: 7.469 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.2762, allocations: 12.02 kB / 450.7 MB, free: 7.457 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002755/0.279, allocations: 0.6172 MB / 451.3 MB, free: 6.836 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003704/0.2827, allocations: 2.28 MB / 453.6 MB, free: 4.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001565/0.2829, allocations: 234.7 kB / 453.8 MB, free: 4.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004232/0.2833, allocations: 316 kB / 454.1 MB, free: 3.961 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006196/0.2895, allocations: 4.047 MB / 458.2 MB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.32e-05/0.2896, allocations: 7.938 kB / 458.2 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002862/0.2899, allocations: 124 kB / 458.3 MB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001293/0.29, allocations: 150.2 kB / 458.5 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00529/0.2953, allocations: 3.386 MB / 461.8 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01709/0.3124, allocations: 13.14 MB / 475 MB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003943/0.3164, allocations: 3.974 MB / 478.9 MB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00153/0.3179, allocations: 0.9801 MB / 479.9 MB, free: 9.141 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004012/0.322, allocations: 2.657 MB / 482.6 MB, free: 6.395 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.24e-05/0.322, allocations: 43.56 kB / 482.6 MB, free: 6.344 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 2.615e-06/0.322, allocations: 4 kB / 482.6 MB, free: 6.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=142): time 0.01078/0.3328, allocations: 5.999 MB / 488.6 MB, free: 252 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.419e-05/0.3329, allocations: 68.72 kB / 488.7 MB, free: 168 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002429/0.3353, allocations: 1.896 MB / 490.6 MB, free: 14.22 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.599e-05/0.3354, allocations: 45.7 kB / 490.6 MB, free: 14.17 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009281/0.3363, allocations: 1.497 MB / 492.1 MB, free: 12.66 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003402/0.3367, allocations: 492.9 kB / 492.6 MB, free: 12.17 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000488/0.3372, allocations: 335.2 kB / 492.9 MB, free: 11.83 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.807e-05/0.3373, allocations: 301.1 kB / 493.2 MB, free: 11.54 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001184/0.3385, allocations: 0.7691 MB / 494 MB, free: 10.77 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001545/0.34, allocations: 1.375 MB / 495.4 MB, free: 9.125 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002885/0.3429, allocations: 2.32 MB / 497.7 MB, free: 6.539 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-05/0.3429, allocations: 7.938 kB / 497.7 MB, free: 6.531 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003747/0.3467, allocations: 2.47 MB / 0.4885 GB, free: 4.043 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.3467, allocations: 16 kB / 0.4885 GB, free: 4.027 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.984e-05/0.3468, allocations: 16 kB / 0.4885 GB, free: 4.012 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003436/0.3471, allocations: 130.8 kB / 0.4886 GB, free: 3.875 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001805/0.3489, allocations: 483.2 kB / 0.4891 GB, free: 3.402 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009835/0.3499, allocations: 1.406 MB / 0.4904 GB, free: 1.855 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001244/0.3512, allocations: 115.9 kB / 0.4906 GB, free: 1.742 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001223/0.3513, allocations: 80 kB / 0.4906 GB, free: 1.664 MB / 414.1 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.001406/0.3527, allocations: 0.9812 MB / 0.4916 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002799/0.353, allocations: 201.5 kB / 0.4918 GB, free: 484 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003116/0.3561, allocations: 1.969 MB / 0.4937 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.563e-05/0.3562, allocations: 7.969 kB / 0.4937 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.3562, allocations: 0 / 0.4937 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000743/0.3569, allocations: 454.4 kB / 0.4941 GB, free: 14 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002574/0.3572, allocations: 31.98 kB / 0.4942 GB, free: 13.97 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009065/0.3581, allocations: 79.91 kB / 0.4943 GB, free: 13.89 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001548/0.3583, allocations: 81.19 kB / 0.4943 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003583/0.3618, allocations: 1.952 MB / 0.4962 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003906/0.3658, allocations: 3.014 MB / 0.4992 GB, free: 8.816 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001027/0.3668, allocations: 0.8067 MB / 0.5 GB, free: 8.008 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001683/0.3685, allocations: 1.289 MB / 0.5012 GB, free: 6.695 MB / 430.1 MB Notification: Performance of Backend: time 3.8e-07/0.3685, allocations: 3.938 kB / 0.5012 GB, free: 6.691 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002925/0.3714, allocations: 1.711 MB / 0.5029 GB, free: 4.922 MB / 430.1 MB Notification: Performance of SimCode: time 0.008/0.3794, allocations: 5.689 MB / 0.5085 GB, free: 15.18 MB / 446.1 MB Notification: Performance of Templates: time 0.209/0.5885, allocations: 32.42 MB / 0.5401 GB, free: 135.1 MB / 462.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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