Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.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.001272/0.001272, allocations: 109.1 kB / 21.18 MB, free: 0.7656 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.001387/0.001387, allocations: 213.1 kB / 24.5 MB, free: 4.148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 230.5 MB / 258.1 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002128/0.002128, allocations: 63.91 kB / 379 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2288/0.2309, allocations: 53.41 MB / 432.5 MB, free: 6.762 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01242/0.2433, allocations: 10.46 MB / 442.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006492/0.2498, allocations: 3.495 MB / 446.4 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001041/0.2509, allocations: 71.5 kB / 446.5 MB, free: 8.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001738/0.2526, allocations: 0.8385 MB / 447.3 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002069/0.2547, allocations: 0.8931 MB / 448.2 MB, free: 6.941 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008139/0.2555, allocations: 427.3 kB / 448.6 MB, free: 6.523 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002908/0.2584, allocations: 2.766 MB / 451.4 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001816/0.2602, allocations: 1.356 MB / 452.8 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001688/0.2619, allocations: 1.304 MB / 454.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002066/0.264, allocations: 1.619 MB / 455.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004057/0.2644, allocations: 332 kB / 456 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007466/0.2651, allocations: 451.8 kB / 456.4 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009148/0.266, allocations: 0.9504 MB / 457.4 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001573/0.2676, allocations: 1.517 MB / 458.9 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004884/0.2725, allocations: 4.402 MB / 463.3 MB, free: 7.727 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.2725, allocations: 0 / 463.3 MB, free: 7.727 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2725, allocations: 4 kB / 463.3 MB, free: 7.723 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001043/0.2726, allocations: 4 kB / 463.3 MB, free: 7.719 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.006353/0.279, allocations: 3.068 MB / 466.4 MB, free: 4.602 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.279, allocations: 8.031 kB / 466.4 MB, free: 4.594 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008379/0.2798, allocations: 331 kB / 466.7 MB, free: 4.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002909/0.2828, allocations: 1.563 MB / 468.3 MB, free: 2.668 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001304/0.2829, allocations: 164.4 kB / 468.4 MB, free: 2.504 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003192/0.2832, allocations: 223.9 kB / 468.7 MB, free: 2.285 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004732/0.2879, allocations: 2.925 MB / 471.6 MB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.314e-05/0.288, allocations: 4 kB / 471.6 MB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001935/0.2882, allocations: 88 kB / 471.7 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001281/0.2883, allocations: 112.3 kB / 471.8 MB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004108/0.2924, allocations: 2.433 MB / 474.2 MB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01414/0.3066, allocations: 8.872 MB / 483.1 MB, free: 3.469 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002156/0.3087, allocations: 1.177 MB / 484.3 MB, free: 2.289 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001727/0.3104, allocations: 0.9138 MB / 485.2 MB, free: 1.379 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002361/0.3107, allocations: 52.94 kB / 485.2 MB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.112e-05/0.3107, allocations: 47.56 kB / 485.3 MB, free: 1.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 2.805e-06/0.3107, allocations: 4 kB / 485.3 MB, free: 1.266 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01385/0.3246, allocations: 6.086 MB / 491.4 MB, free: 11.15 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.692e-05/0.3246, allocations: 64.41 kB / 491.4 MB, free: 11.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002282/0.3269, allocations: 1.566 MB / 493 MB, free: 9.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.667e-05/0.327, allocations: 45.7 kB / 493 MB, free: 9.449 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009341/0.3279, allocations: 1.142 MB / 494.2 MB, free: 8.293 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003811/0.3283, allocations: 452.1 kB / 494.6 MB, free: 7.848 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004195/0.3287, allocations: 275.5 kB / 494.9 MB, free: 7.57 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.3288, allocations: 305.1 kB / 495.2 MB, free: 7.27 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001189/0.33, allocations: 0.7066 MB / 495.9 MB, free: 6.562 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/0.3316, allocations: 1.138 MB / 497 MB, free: 5.238 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002879/0.3345, allocations: 1.967 MB / 499 MB, free: 3.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.646e-06/0.3345, allocations: 4 kB / 499 MB, free: 3.086 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004473/0.3389, allocations: 2.456 MB / 0.4897 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.578e-05/0.339, allocations: 10.34 kB / 0.4897 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.08e-05/0.339, allocations: 12 kB / 0.4897 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/0.34, allocations: 423.3 kB / 0.4901 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/0.3413, allocations: 351.5 kB / 0.4905 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007298/0.3486, allocations: 6.817 MB / 0.4971 GB, free: 8.668 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001301/0.3499, allocations: 108 kB / 0.4972 GB, free: 8.562 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/0.35, allocations: 60 kB / 0.4973 GB, free: 8.504 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001224/0.3512, allocations: 0.7278 MB / 0.498 GB, free: 7.766 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002917/0.3515, allocations: 174.9 kB / 0.4982 GB, free: 7.594 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003802/0.3553, allocations: 2.115 MB / 0.5002 GB, free: 5.449 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/0.3553, allocations: 16 kB / 0.5002 GB, free: 5.434 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.3553, allocations: 4 kB / 0.5002 GB, free: 5.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.481e-05/0.3553, allocations: 11.91 kB / 0.5003 GB, free: 5.418 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007984/0.3633, allocations: 4.652 MB / 0.5048 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/0.3633, allocations: 4 kB / 0.5048 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009587/0.3643, allocations: 220.1 kB / 0.505 GB, free: 440 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001163/0.3654, allocations: 459 kB / 0.5055 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.188e-05/0.3655, allocations: 39.91 kB / 0.5055 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0087/0.3742, allocations: 8.281 MB / 0.5136 GB, free: 7.191 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-05/0.3742, allocations: 7.938 kB / 0.5136 GB, free: 7.184 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005369/0.3796, allocations: 3.132 MB / 0.5166 GB, free: 3.977 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009826/0.3806, allocations: 330.7 kB / 0.517 GB, free: 3.652 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002355/0.3808, allocations: 32 kB / 0.517 GB, free: 3.621 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009027/0.3817, allocations: 83.89 kB / 0.5171 GB, free: 3.539 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002358/0.382, allocations: 104.7 kB / 0.5172 GB, free: 3.438 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.053e-05/0.382, allocations: 39.98 kB / 0.5172 GB, free: 3.398 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001678/0.3837, allocations: 1.067 MB / 0.5183 GB, free: 2.336 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3837, allocations: 0 / 0.5183 GB, free: 2.336 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001679/0.3854, allocations: 496.1 kB / 0.5187 GB, free: 1.852 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,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.000399/0.3858, allocations: 202.4 kB / 0.5189 GB, free: 1.648 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003888/0.3897, allocations: 2.144 MB / 0.521 GB, free: 15.46 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.3897, allocations: 320 / 0.521 GB, free: 15.46 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002465/0.3922, allocations: 1.426 MB / 0.5224 GB, free: 13.98 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002237/0.3944, allocations: 497.2 kB / 0.5229 GB, free: 13.51 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008565/0.403, allocations: 4.817 MB / 0.5276 GB, free: 8.605 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001694/0.4047, allocations: 1.839 MB / 0.5294 GB, free: 6.738 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005263/0.4052, allocations: 139.4 kB / 0.5295 GB, free: 6.602 MB / 446.1 MB Notification: Performance of SimCode: time 1.021e-06/0.4052, allocations: 3.938 kB / 0.5295 GB, free: 6.598 MB / 446.1 MB Notification: Performance of Templates: time 0.2672/0.6724, allocations: 74.24 MB / 0.602 GB, free: 40.91 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.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.074208673089743]