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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 113 kB / 19.04 MB, free: 3.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 225.6 MB / 250.8 MB, free: 13.32 MB / 206.1 MB " [Timeout remaining time 178] 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=20000,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=20000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 55.91 kB / 368.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.2555, allocations: 52.13 MB / 420.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01382/0.2693, allocations: 11.02 MB / 431.9 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008289/0.2776, allocations: 3.629 MB / 435.5 MB, free: 380 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001772/0.2794, allocations: 67.69 kB / 435.6 MB, free: 312 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002074/0.2814, allocations: 0.881 MB / 436.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002593/0.284, allocations: 0.9126 MB / 437.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.2851, allocations: 459.2 kB / 437.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003379/0.2884, allocations: 2.946 MB / 440.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0021/0.2905, allocations: 1.564 MB / 442.3 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001761/0.2923, allocations: 1.378 MB / 443.7 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002288/0.2946, allocations: 1.794 MB / 445.5 MB, free: 6.281 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004855/0.2951, allocations: 376 kB / 445.9 MB, free: 5.914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007902/0.2959, allocations: 475.8 kB / 446.4 MB, free: 5.449 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001053/0.2969, allocations: 1.095 MB / 447.4 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001634/0.2986, allocations: 1.668 MB / 449.1 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005006/0.3036, allocations: 4.897 MB / 454 MB, free: 13.76 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.3036, allocations: 8 kB / 454 MB, free: 13.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.3036, allocations: 0 / 454 MB, free: 13.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.109e-05/0.3036, allocations: 0 / 454 MB, free: 13.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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.006471/0.3101, allocations: 3.465 MB / 457.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.3101, allocations: 8.031 kB / 457.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008256/0.311, allocations: 350.8 kB / 457.8 MB, free: 9.863 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00305/0.314, allocations: 1.839 MB / 459.7 MB, free: 7.973 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001599/0.3142, allocations: 189.4 kB / 459.9 MB, free: 7.785 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003707/0.3146, allocations: 259.9 kB / 460.1 MB, free: 7.531 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005376/0.3199, allocations: 3.279 MB / 463.4 MB, free: 4.172 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.451e-05/0.32, allocations: 3.984 kB / 463.4 MB, free: 4.168 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002392/0.3202, allocations: 108 kB / 463.5 MB, free: 4.062 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001316/0.3204, allocations: 120.9 kB / 463.6 MB, free: 3.941 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004624/0.325, allocations: 2.756 MB / 466.4 MB, free: 1.172 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01728/0.3423, allocations: 10.4 MB / 476.8 MB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002056/0.3443, allocations: 1.304 MB / 478.1 MB, free: 5.035 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001189/0.3455, allocations: 0.7032 MB / 478.8 MB, free: 4.328 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000321/0.3458, allocations: 208.2 kB / 479 MB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.937e-05/0.3459, allocations: 43.56 kB / 479 MB, free: 4.039 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 2.865e-06/0.3459, allocations: 0 / 479 MB, free: 4.039 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01548/0.3614, allocations: 6.942 MB / 486 MB, free: 12.98 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.157e-05/0.3614, allocations: 64.41 kB / 486 MB, free: 12.91 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002665/0.3641, allocations: 1.793 MB / 487.8 MB, free: 11.12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.209e-05/0.3642, allocations: 53.64 kB / 487.9 MB, free: 11.06 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009827/0.3652, allocations: 1.298 MB / 489.2 MB, free: 9.746 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003736/0.3655, allocations: 456.2 kB / 489.6 MB, free: 9.297 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004744/0.366, allocations: 295.4 kB / 489.9 MB, free: 9 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.3661, allocations: 309.1 kB / 490.2 MB, free: 8.695 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001219/0.3673, allocations: 0.7769 MB / 491 MB, free: 7.918 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001613/0.369, allocations: 1.292 MB / 492.3 MB, free: 6.402 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002975/0.3719, allocations: 2.21 MB / 494.5 MB, free: 3.965 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/0.3719, allocations: 8 kB / 494.5 MB, free: 3.957 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004108/0.376, allocations: 2.487 MB / 497 MB, free: 1.449 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.687e-05/0.3761, allocations: 12 kB / 497 MB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.184e-05/0.3761, allocations: 16 kB / 497 MB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006245/0.3767, allocations: 243.2 kB / 497.3 MB, free: 1.172 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001434/0.3782, allocations: 419.3 kB / 497.7 MB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002956/0.3811, allocations: 3.234 MB / 0.4892 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001378/0.3825, allocations: 127.8 kB / 0.4893 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/0.3826, allocations: 71.98 kB / 0.4893 GB, free: 13.04 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.001359/0.384, allocations: 0.8212 MB / 0.4901 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000344/0.3843, allocations: 198.7 kB / 0.4903 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003329/0.3876, allocations: 2.035 MB / 0.4923 GB, free: 9.961 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/0.3877, allocations: 12 kB / 0.4923 GB, free: 9.949 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.3877, allocations: 0 / 0.4923 GB, free: 9.949 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.02e-05/0.3877, allocations: 3.984 kB / 0.4923 GB, free: 9.945 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007863/0.3955, allocations: 4.741 MB / 0.497 GB, free: 5.102 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.448e-05/0.3956, allocations: 8 kB / 0.497 GB, free: 5.094 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.3966, allocations: 259.9 kB / 0.4972 GB, free: 4.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005153/0.3971, allocations: 207.1 kB / 0.4974 GB, free: 4.625 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.367e-05/0.3972, allocations: 27.98 kB / 0.4975 GB, free: 4.598 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002779/0.4, allocations: 3.222 MB / 0.5006 GB, free: 1.094 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.214e-06/0.4, allocations: 4 kB / 0.5006 GB, free: 1.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004645/0.4047, allocations: 3.136 MB / 0.5037 GB, free: 13.9 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008223/0.4055, allocations: 431.7 kB / 0.5041 GB, free: 13.46 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002151/0.4057, allocations: 35.98 kB / 0.5041 GB, free: 13.42 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008578/0.4066, allocations: 91.88 kB / 0.5042 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001737/0.4067, allocations: 77.03 kB / 0.5043 GB, free: 13.26 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.438e-05/0.4068, allocations: 39.92 kB / 0.5043 GB, free: 13.22 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001887/0.4087, allocations: 1.22 MB / 0.5055 GB, free: 12.01 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4087, allocations: 4 kB / 0.5055 GB, free: 12 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001991/0.4107, allocations: 491.9 kB / 0.506 GB, free: 11.52 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.0005425/0.4112, allocations: 194.8 kB / 0.5062 GB, free: 11.32 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004179/0.4154, allocations: 2.272 MB / 0.5084 GB, free: 8.984 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.4154, allocations: 0 / 0.5084 GB, free: 8.984 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001932/0.4174, allocations: 1.276 MB / 0.5096 GB, free: 7.637 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002673/0.42, allocations: 0.4884 MB / 0.5101 GB, free: 7.156 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009352/0.4294, allocations: 4.969 MB / 0.515 GB, free: 2.117 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001852/0.4312, allocations: 2.006 MB / 0.5169 GB, free: 80 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001517/0.4327, allocations: 0.4999 MB / 0.5174 GB, free: 15.57 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004169/0.4332, allocations: 139.4 kB / 0.5175 GB, free: 15.44 MB / 446.1 MB Notification: Performance of SimCode: time 1.313e-06/0.4332, allocations: 0 / 0.5175 GB, free: 15.44 MB / 446.1 MB Notification: Performance of Templates: time 0.2916/0.7248, allocations: 27.01 MB / 0.5439 GB, free: 103 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.6081602070480585]