Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00982/0.00982, allocations: 105.9 kB / 21.98 MB, free: 5.223 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002352/0.002352, allocations: 216.4 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.448/1.448, allocations: 230.6 MB / 259 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002666/0.002666, allocations: 76.73 kB / 379.8 MB, free: 2.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3339, allocations: 53.37 MB / 433.2 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.0144/0.3483, allocations: 11.06 MB / 444.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009267/0.3575, allocations: 3.696 MB / 447.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00243/0.36, allocations: 83.44 kB / 448 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002582/0.3626, allocations: 0.8853 MB / 448.9 MB, free: 7.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00305/0.3656, allocations: 0.9087 MB / 449.8 MB, free: 6.258 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001041/0.3667, allocations: 483.1 kB / 450.3 MB, free: 5.785 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003526/0.3702, allocations: 2.942 MB / 453.2 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002116/0.3723, allocations: 1.564 MB / 454.8 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001962/0.3743, allocations: 1.421 MB / 456.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002406/0.3767, allocations: 1.806 MB / 458 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004887/0.3772, allocations: 372 kB / 458.4 MB, free: 13.6 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008578/0.378, allocations: 479.8 kB / 458.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001102/0.3791, allocations: 1.091 MB / 459.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001802/0.3809, allocations: 1.68 MB / 461.6 MB, free: 10.35 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005587/0.3865, allocations: 4.907 MB / 466.5 MB, free: 5.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.3865, allocations: 0 / 466.5 MB, free: 5.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.3865, allocations: 4 kB / 466.5 MB, free: 5.426 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001611/0.3867, allocations: 4 kB / 466.5 MB, free: 5.422 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.008294/0.395, allocations: 3.413 MB / 470 MB, free: 1.957 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.447e-05/0.395, allocations: 11.98 kB / 470 MB, free: 1.945 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001086/0.3961, allocations: 366.8 kB / 470.3 MB, free: 1.586 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003755/0.3999, allocations: 1.756 MB / 472.1 MB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001774/0.4, allocations: 185.4 kB / 472.3 MB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004138/0.4005, allocations: 251.9 kB / 472.5 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006008/0.4065, allocations: 3.283 MB / 475.8 MB, free: 12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.715e-05/0.4065, allocations: 7.938 kB / 475.8 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002422/0.4068, allocations: 108 kB / 475.9 MB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001388/0.4069, allocations: 120.9 kB / 476 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004913/0.4118, allocations: 2.756 MB / 478.8 MB, free: 8.996 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01744/0.4293, allocations: 10.22 MB / 489 MB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001856/0.4311, allocations: 1.067 MB / 490.1 MB, free: 13.33 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001241/0.4324, allocations: 0.7032 MB / 490.8 MB, free: 12.62 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002335/0.4326, allocations: 58.03 kB / 490.8 MB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.656e-05/0.4326, allocations: 43.56 kB / 490.9 MB, free: 12.51 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 2.826e-06/0.4326, allocations: 0 / 490.9 MB, free: 12.51 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01555/0.4482, allocations: 6.64 MB / 497.5 MB, free: 5.836 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.569e-05/0.4482, allocations: 64.41 kB / 497.6 MB, free: 5.762 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002796/0.451, allocations: 1.794 MB / 499.4 MB, free: 3.969 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.894e-05/0.4511, allocations: 45.7 kB / 499.4 MB, free: 3.918 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001067/0.4522, allocations: 1.306 MB / 0.489 GB, free: 2.598 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003966/0.4526, allocations: 456.1 kB / 0.4894 GB, free: 2.148 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004893/0.4531, allocations: 295.5 kB / 0.4897 GB, free: 1.852 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.4532, allocations: 313 kB / 0.49 GB, free: 1.543 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0013/0.4545, allocations: 0.773 MB / 0.4908 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001729/0.4562, allocations: 1.292 MB / 0.492 GB, free: 15.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003165/0.4594, allocations: 2.214 MB / 0.4942 GB, free: 12.81 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.906e-06/0.4594, allocations: 4 kB / 0.4942 GB, free: 12.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004364/0.4638, allocations: 2.479 MB / 0.4966 GB, free: 10.3 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.97e-05/0.4638, allocations: 12.69 kB / 0.4966 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.268e-05/0.4638, allocations: 16 kB / 0.4966 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006626/0.4645, allocations: 243.2 kB / 0.4969 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001505/0.466, allocations: 415.3 kB / 0.4973 GB, free: 9.621 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002986/0.469, allocations: 3.039 MB / 0.5002 GB, free: 6.352 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001408/0.4704, allocations: 127.8 kB / 0.5003 GB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001323/0.4705, allocations: 68 kB / 0.5004 GB, free: 6.16 MB / 414.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.001525/0.4721, allocations: 0.8268 MB / 0.5012 GB, free: 5.324 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003647/0.4724, allocations: 194.7 kB / 0.5014 GB, free: 5.133 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003641/0.4761, allocations: 2.043 MB / 0.5034 GB, free: 3.066 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.168e-05/0.4761, allocations: 12 kB / 0.5034 GB, free: 3.055 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.4761, allocations: 0 / 0.5034 GB, free: 3.055 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.394e-05/0.4761, allocations: 7.969 kB / 0.5034 GB, free: 3.047 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008222/0.4843, allocations: 4.709 MB / 0.508 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.4843, allocations: 0 / 0.508 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001148/0.4855, allocations: 263.6 kB / 0.5083 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005717/0.486, allocations: 203.5 kB / 0.5085 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.264e-05/0.4861, allocations: 27.98 kB / 0.5085 GB, free: 13.74 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002881/0.489, allocations: 3.008 MB / 0.5114 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.451e-06/0.489, allocations: 7.938 kB / 0.5114 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00507/0.4941, allocations: 3.144 MB / 0.5145 GB, free: 7.293 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009663/0.495, allocations: 354.6 kB / 0.5148 GB, free: 6.945 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002391/0.4953, allocations: 27.94 kB / 0.5149 GB, free: 6.918 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009192/0.4962, allocations: 99.88 kB / 0.515 GB, free: 6.82 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001858/0.4964, allocations: 84.83 kB / 0.515 GB, free: 6.738 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.857e-05/0.4965, allocations: 32 kB / 0.5151 GB, free: 6.707 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001994/0.4985, allocations: 1.224 MB / 0.5163 GB, free: 5.492 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4985, allocations: 0 / 0.5163 GB, free: 5.492 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001591/0.5001, allocations: 491.9 kB / 0.5167 GB, free: 5.012 MB / 430.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.0004098/0.5005, allocations: 190.9 kB / 0.5169 GB, free: 4.816 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003852/0.5043, allocations: 2.125 MB / 0.519 GB, free: 2.664 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.5043, allocations: 0 / 0.519 GB, free: 2.664 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001919/0.5062, allocations: 1.134 MB / 0.5201 GB, free: 1.5 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002308/0.5085, allocations: 0.4912 MB / 0.5206 GB, free: 1.02 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008626/0.5172, allocations: 5.018 MB / 0.5255 GB, free: 11.93 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001874/0.519, allocations: 1.974 MB / 0.5274 GB, free: 9.922 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006762/0.5197, allocations: 151.4 kB / 0.5276 GB, free: 9.773 MB / 446.1 MB Notification: Performance of SimCode: time 9.61e-07/0.5197, allocations: 0 / 0.5276 GB, free: 9.773 MB / 446.1 MB Notification: Performance of Templates: time 0.2742/0.7939, allocations: 83.26 MB / 0.6089 GB, free: 35.09 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.245124164968729]