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.001859/0.001859, allocations: 108.4 kB / 17.74 MB, free: 5.34 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.002655/0.002655, allocations: 183 kB / 18.67 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.645/2.645, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002161/0.002161, allocations: 47.94 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7251/0.7272, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02923/0.7565, allocations: 15.18 MB / 416.6 MB, free: 9.629 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01934/0.776, allocations: 5.085 MB / 421.7 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006382/0.7825, allocations: 99.62 kB / 421.8 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006567/0.7891, allocations: 1.067 MB / 422.9 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008796/0.798, allocations: 1.266 MB / 424.1 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005267/0.8033, allocations: 0.8896 MB / 425 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01105/0.8144, allocations: 3.61 MB / 428.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008402/0.8229, allocations: 3.314 MB / 431.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006452/0.8294, allocations: 1.729 MB / 433.7 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006728/0.8362, allocations: 2.055 MB / 435.7 MB, free: 6.387 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00273/0.839, allocations: 480 kB / 436.2 MB, free: 5.918 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004211/0.8433, allocations: 0.6911 MB / 436.9 MB, free: 5.227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003729/0.8471, allocations: 1.138 MB / 438 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007196/0.8543, allocations: 2.042 MB / 440.1 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01784/0.8722, allocations: 6.266 MB / 446.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.936e-05/0.8724, allocations: 0 / 446.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.51e-06/0.8724, allocations: 0 / 446.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003701/0.8728, allocations: 0 / 446.3 MB, free: 11.75 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.02332/0.8961, allocations: 4.246 MB / 450.6 MB, free: 7.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.169e-05/0.8962, allocations: 12.03 kB / 450.6 MB, free: 7.418 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007119/0.9034, allocations: 0.6133 MB / 451.2 MB, free: 6.801 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01316/0.9166, allocations: 2.276 MB / 453.5 MB, free: 4.469 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005822/0.9173, allocations: 242.6 kB / 453.7 MB, free: 4.23 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002367/0.9197, allocations: 312 kB / 454 MB, free: 3.926 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02121/0.9409, allocations: 4.047 MB / 458.1 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003047/0.9413, allocations: 0 / 458.1 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001809/0.9432, allocations: 135.8 kB / 458.2 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003792/0.9436, allocations: 146.2 kB / 458.3 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01599/0.9596, allocations: 3.393 MB / 461.7 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05237/1.012, allocations: 13.14 MB / 474.9 MB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008576/1.021, allocations: 3.974 MB / 478.8 MB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00353/1.024, allocations: 0.9801 MB / 479.8 MB, free: 9.098 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01017/1.035, allocations: 2.657 MB / 482.5 MB, free: 6.352 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.387e-05/1.035, allocations: 43.56 kB / 482.5 MB, free: 6.301 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 9.788e-06/1.035, allocations: 0 / 482.5 MB, free: 6.301 MB / 398.1 MB Notification: Performance of matching and sorting (n=142): time 0.02754/1.062, allocations: 5.999 MB / 488.5 MB, free: 212 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/1.062, allocations: 64.72 kB / 488.6 MB, free: 132 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008759/1.071, allocations: 1.904 MB / 490.5 MB, free: 14.18 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005847/1.072, allocations: 49.7 kB / 490.5 MB, free: 14.12 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002874/1.075, allocations: 1.497 MB / 492 MB, free: 12.61 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001442/1.076, allocations: 488.9 kB / 492.5 MB, free: 12.12 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002045/1.078, allocations: 335.2 kB / 492.8 MB, free: 11.79 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002221/1.079, allocations: 301.1 kB / 493.1 MB, free: 11.49 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002863/1.082, allocations: 0.7652 MB / 493.9 MB, free: 10.73 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003595/1.085, allocations: 1.379 MB / 495.3 MB, free: 9.082 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006997/1.092, allocations: 2.32 MB / 497.6 MB, free: 6.496 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.088e-05/1.092, allocations: 8 kB / 497.6 MB, free: 6.488 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.009394/1.102, allocations: 2.462 MB / 0.4883 GB, free: 4.008 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000131/1.102, allocations: 16.16 kB / 0.4884 GB, free: 3.992 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.311e-05/1.102, allocations: 23.94 kB / 0.4884 GB, free: 3.969 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008209/1.103, allocations: 126.5 kB / 0.4885 GB, free: 3.836 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003507/1.107, allocations: 479.2 kB / 0.489 GB, free: 3.367 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003006/1.11, allocations: 1.402 MB / 0.4903 GB, free: 1.824 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003539/1.113, allocations: 115.8 kB / 0.4904 GB, free: 1.711 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004832/1.114, allocations: 80 kB / 0.4905 GB, free: 1.633 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.004999/1.119, allocations: 0.9929 MB / 0.4915 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001622/1.12, allocations: 201.5 kB / 0.4917 GB, free: 440 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008097/1.129, allocations: 1.961 MB / 0.4936 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-05/1.129, allocations: 12 kB / 0.4936 GB, free: 14.43 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.167e-05/1.129, allocations: 7.938 kB / 0.4936 GB, free: 14.43 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.183e-05/1.129, allocations: 7.969 kB / 0.4936 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01998/1.149, allocations: 4.983 MB / 0.4985 GB, free: 9.328 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.972e-05/1.149, allocations: 4.25 kB / 0.4985 GB, free: 9.324 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002505/1.151, allocations: 311.5 kB / 0.4988 GB, free: 9.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007168/1.152, allocations: 98.52 kB / 0.4989 GB, free: 8.914 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001822/1.152, allocations: 28 kB / 0.4989 GB, free: 8.887 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003052/1.155, allocations: 1.379 MB / 0.5003 GB, free: 7.367 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.379e-05/1.155, allocations: 4 kB / 0.5003 GB, free: 7.363 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01201/1.168, allocations: 3.082 MB / 0.5033 GB, free: 4.223 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002643/1.17, allocations: 458.5 kB / 0.5037 GB, free: 3.754 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001164/1.171, allocations: 27.98 kB / 0.5037 GB, free: 3.727 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002471/1.174, allocations: 83.97 kB / 0.5038 GB, free: 3.645 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003682/1.174, allocations: 89.12 kB / 0.5039 GB, free: 3.559 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001753/1.175, allocations: 36 kB / 0.5039 GB, free: 3.523 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.005274/1.18, allocations: 1.289 MB / 0.5052 GB, free: 2.211 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.31e-07/1.18, allocations: 0 / 0.5052 GB, free: 2.211 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004848/1.185, allocations: 0.5273 MB / 0.5057 GB, free: 1.684 MB / 430.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 (141): * Single equations (assignments): 138 * 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 Backend phase and start with SimCode phase: time 0.0008336/1.186, allocations: 175 kB / 0.5059 GB, free: 1.5 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007354/1.193, allocations: 2.22 MB / 0.508 GB, free: 15.22 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.237e-05/1.193, allocations: 4 kB / 0.508 GB, free: 15.22 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003444/1.197, allocations: 1.178 MB / 0.5092 GB, free: 13.99 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006994/1.204, allocations: 0.5074 MB / 0.5097 GB, free: 13.48 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02491/1.229, allocations: 5.611 MB / 0.5152 GB, free: 7.816 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005164/1.234, allocations: 2.22 MB / 0.5173 GB, free: 5.559 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001606/1.236, allocations: 167.4 kB / 0.5175 GB, free: 5.395 MB / 446.1 MB Notification: Performance of SimCode: time 3.627e-06/1.236, allocations: 0 / 0.5175 GB, free: 5.395 MB / 446.1 MB Notification: Performance of Templates: time 0.6293/1.865, allocations: 86.58 MB / 0.6021 GB, free: 73.75 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