Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 108.9 kB / 17.06 MB, free: 6.012 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.001123/0.001123, allocations: 191 kB / 18 MB, free: 5.098 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.327/1.327, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00175/0.00175, allocations: 47.92 kB / 351.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2996, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01178/0.3114, allocations: 10.92 MB / 411.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006456/0.3179, allocations: 3.615 MB / 415.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001517/0.3194, allocations: 63.75 kB / 415.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001905/0.3214, allocations: 0.8695 MB / 416.2 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002536/0.3239, allocations: 0.9048 MB / 417.1 MB, free: 8.445 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009519/0.3249, allocations: 455.3 kB / 417.6 MB, free: 8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003697/0.3286, allocations: 2.946 MB / 420.5 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002963/0.3316, allocations: 2.731 MB / 423.2 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001902/0.3335, allocations: 1.378 MB / 424.6 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002018/0.3355, allocations: 1.748 MB / 426.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004417/0.336, allocations: 376 kB / 426.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007563/0.3367, allocations: 479.8 kB / 427.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009219/0.3377, allocations: 1.067 MB / 428.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00222/0.3399, allocations: 1.672 MB / 429.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004542/0.3445, allocations: 4.879 MB / 434.8 MB, free: 6.625 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3445, allocations: 4 kB / 434.8 MB, free: 6.621 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3445, allocations: 0 / 434.8 MB, free: 6.621 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.841e-05/0.3446, allocations: 0 / 434.8 MB, free: 6.621 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.006568/0.3512, allocations: 3.401 MB / 438.2 MB, free: 3.156 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.3512, allocations: 8.031 kB / 438.2 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009403/0.3522, allocations: 337.1 kB / 438.6 MB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003069/0.3553, allocations: 1.822 MB / 440.4 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/0.3554, allocations: 193.4 kB / 440.6 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003634/0.3558, allocations: 255.9 kB / 440.8 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00551/0.3613, allocations: 3.275 MB / 444.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.94e-05/0.3614, allocations: 11.84 kB / 444.1 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002297/0.3616, allocations: 104 kB / 444.2 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001269/0.3618, allocations: 124.9 kB / 444.3 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004517/0.3663, allocations: 2.752 MB / 447.1 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01484/0.3812, allocations: 10.37 MB / 457.4 MB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001831/0.383, allocations: 1.367 MB / 458.8 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001184/0.3842, allocations: 0.7581 MB / 459.6 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002659/0.3845, allocations: 199.2 kB / 459.8 MB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/0.3845, allocations: 43.56 kB / 459.8 MB, free: 12.92 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 4.078e-06/0.3846, allocations: 0 / 459.8 MB, free: 12.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01485/0.3994, allocations: 6.913 MB / 466.7 MB, free: 5.891 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/0.3995, allocations: 64.41 kB / 466.8 MB, free: 5.816 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002441/0.4019, allocations: 1.785 MB / 468.6 MB, free: 4.031 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.653e-05/0.402, allocations: 45.7 kB / 468.6 MB, free: 3.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000828/0.4029, allocations: 1.283 MB / 469.9 MB, free: 2.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003178/0.4032, allocations: 425.9 kB / 470.3 MB, free: 2.258 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004546/0.4037, allocations: 295.2 kB / 470.6 MB, free: 1.961 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.4038, allocations: 309 kB / 470.9 MB, free: 1.656 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001208/0.405, allocations: 0.7769 MB / 471.7 MB, free: 0.8789 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001562/0.4066, allocations: 1.296 MB / 473 MB, free: 15.36 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002887/0.4095, allocations: 2.206 MB / 475.2 MB, free: 12.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/0.4095, allocations: 4 kB / 475.2 MB, free: 12.92 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004111/0.4136, allocations: 2.474 MB / 477.7 MB, free: 10.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.609e-05/0.4137, allocations: 20.02 kB / 477.7 MB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/0.4137, allocations: 16 kB / 477.7 MB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006158/0.4143, allocations: 231.3 kB / 477.9 MB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00146/0.4158, allocations: 419.3 kB / 478.3 MB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002723/0.4185, allocations: 3.234 MB / 481.6 MB, free: 6.219 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001371/0.4199, allocations: 135.7 kB / 481.7 MB, free: 6.086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001174/0.42, allocations: 68 kB / 481.8 MB, free: 6.02 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001339/0.4214, allocations: 0.825 MB / 482.6 MB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003064/0.4217, allocations: 181.8 kB / 482.8 MB, free: 5.004 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003378/0.4251, allocations: 2.047 MB / 484.8 MB, free: 2.938 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.4251, allocations: 12 kB / 484.8 MB, free: 2.926 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.4251, allocations: 4 kB / 484.8 MB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386e-05/0.4251, allocations: 7.969 kB / 484.8 MB, free: 2.914 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007269/0.4324, allocations: 4.733 MB / 489.6 MB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.4324, allocations: 3.938 kB / 489.6 MB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/0.4336, allocations: 271.9 kB / 489.8 MB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005322/0.4341, allocations: 203.2 kB / 490 MB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.467e-05/0.4342, allocations: 24 kB / 490.1 MB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002541/0.4367, allocations: 3.226 MB / 493.3 MB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4368, allocations: 0 / 493.3 MB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004388/0.4412, allocations: 3.135 MB / 496.4 MB, free: 6.875 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007827/0.442, allocations: 422.7 kB / 496.8 MB, free: 6.441 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002538/0.4422, allocations: 24.06 kB / 496.9 MB, free: 6.418 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009628/0.4432, allocations: 99.81 kB / 497 MB, free: 6.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001831/0.4434, allocations: 80.81 kB / 497 MB, free: 6.242 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.326e-05/0.4435, allocations: 32 kB / 497.1 MB, free: 6.211 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001766/0.4452, allocations: 1.22 MB / 498.3 MB, free: 5 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4452, allocations: 0 / 498.3 MB, free: 5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001427/0.4467, allocations: 499.9 kB / 498.8 MB, free: 4.512 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (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.0003591/0.447, allocations: 187.1 kB / 499 MB, free: 4.316 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003432/0.4505, allocations: 2.358 MB / 0.4896 GB, free: 1.895 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.4505, allocations: 0 / 0.4896 GB, free: 1.895 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001797/0.4523, allocations: 1.339 MB / 0.4909 GB, free: 496 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002212/0.4545, allocations: 0.4954 MB / 0.4914 GB, free: 0 / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00756/0.4621, allocations: 4.857 MB / 0.4961 GB, free: 11.08 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00171/0.4639, allocations: 2.01 MB / 0.4981 GB, free: 9.035 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001516/0.4654, allocations: 0.4921 MB / 0.4985 GB, free: 8.539 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004317/0.4658, allocations: 143.4 kB / 0.4987 GB, free: 8.398 MB / 430.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4658, allocations: 0 / 0.4987 GB, free: 8.398 MB / 430.1 MB Notification: Performance of Templates: time 0.04687/0.5127, allocations: 26.22 MB / 0.5243 GB, free: 14.43 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches