Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001653/0.001653, allocations: 112.2 kB / 21.19 MB, free: 0.7578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001757/0.001757, allocations: 209.8 kB / 24.49 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.408/1.408, allocations: 230.6 MB / 258.3 MB, free: 8.219 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001578/0.001578, allocations: 47.91 kB / 379 MB, free: 2.641 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2901/0.2917, allocations: 53.36 MB / 432.4 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01347/0.3051, allocations: 10.45 MB / 442.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007664/0.3128, allocations: 3.503 MB / 446.4 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00206/0.3149, allocations: 71.5 kB / 446.4 MB, free: 8.852 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002602/0.3175, allocations: 0.8346 MB / 447.3 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003523/0.321, allocations: 0.8893 MB / 448.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001503/0.3225, allocations: 431.3 kB / 448.6 MB, free: 6.699 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004581/0.3271, allocations: 2.766 MB / 451.3 MB, free: 3.922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00314/0.3302, allocations: 1.348 MB / 452.7 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002516/0.3327, allocations: 1.308 MB / 454 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00318/0.3359, allocations: 1.627 MB / 455.6 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009938/0.3369, allocations: 332 kB / 456 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001431/0.3383, allocations: 447.8 kB / 456.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001502/0.3398, allocations: 0.9543 MB / 457.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003056/0.3429, allocations: 1.505 MB / 458.8 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007058/0.3499, allocations: 4.41 MB / 463.3 MB, free: 7.902 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.35, allocations: 0 / 463.3 MB, free: 7.902 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.35, allocations: 4 kB / 463.3 MB, free: 7.898 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001442/0.3501, allocations: 0 / 463.3 MB, free: 7.898 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.008273/0.3584, allocations: 3.068 MB / 466.3 MB, free: 4.785 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3584, allocations: 11.97 kB / 466.3 MB, free: 4.773 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001152/0.3596, allocations: 335 kB / 466.7 MB, free: 4.445 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003694/0.3633, allocations: 1.555 MB / 468.2 MB, free: 2.852 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002316/0.3635, allocations: 180.3 kB / 468.4 MB, free: 2.672 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004585/0.364, allocations: 220 kB / 468.6 MB, free: 2.457 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005773/0.3697, allocations: 2.913 MB / 471.5 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.669e-05/0.3698, allocations: 4 kB / 471.5 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002258/0.37, allocations: 95.98 kB / 471.6 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001356/0.3702, allocations: 112.3 kB / 471.7 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004666/0.3748, allocations: 2.433 MB / 474.2 MB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01556/0.3904, allocations: 8.872 MB / 483 MB, free: 3.645 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002236/0.3926, allocations: 1.186 MB / 484.2 MB, free: 2.457 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00176/0.3944, allocations: 0.9131 MB / 485.1 MB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002367/0.3946, allocations: 52.95 kB / 485.2 MB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.415e-05/0.3947, allocations: 43.56 kB / 485.2 MB, free: 1.441 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 2.595e-06/0.3947, allocations: 0 / 485.2 MB, free: 1.441 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01429/0.4089, allocations: 6.084 MB / 491.3 MB, free: 11.33 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.74e-05/0.409, allocations: 64.41 kB / 491.4 MB, free: 11.26 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002644/0.4116, allocations: 1.57 MB / 492.9 MB, free: 9.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001128/0.4118, allocations: 45.7 kB / 493 MB, free: 9.629 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009453/0.4127, allocations: 1.13 MB / 494.1 MB, free: 8.484 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004462/0.4131, allocations: 456.1 kB / 494.6 MB, free: 8.035 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004601/0.4136, allocations: 275.5 kB / 494.8 MB, free: 7.758 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.4137, allocations: 301.1 kB / 495.1 MB, free: 7.461 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001285/0.415, allocations: 0.7183 MB / 495.8 MB, free: 6.742 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001624/0.4166, allocations: 1.142 MB / 497 MB, free: 5.414 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003006/0.4197, allocations: 1.971 MB / 499 MB, free: 3.258 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.141e-05/0.4197, allocations: 4 kB / 499 MB, free: 3.254 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004534/0.4242, allocations: 2.44 MB / 0.4897 GB, free: 0.793 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.748e-05/0.4242, allocations: 16.05 kB / 0.4897 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.605e-05/0.4243, allocations: 16 kB / 0.4897 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001038/0.4253, allocations: 422.6 kB / 0.4901 GB, free: 348 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/0.4266, allocations: 347.4 kB / 0.4904 GB, free: 0 / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007774/0.4344, allocations: 6.821 MB / 0.4971 GB, free: 8.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00137/0.4357, allocations: 112 kB / 0.4972 GB, free: 8.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001847/0.4359, allocations: 63.98 kB / 0.4972 GB, free: 8.668 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.001319/0.4372, allocations: 0.72 MB / 0.498 GB, free: 7.938 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004076/0.4376, allocations: 182.9 kB / 0.4981 GB, free: 7.758 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004049/0.4417, allocations: 2.119 MB / 0.5002 GB, free: 5.613 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.155e-05/0.4417, allocations: 16 kB / 0.5002 GB, free: 5.598 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.4417, allocations: 4 kB / 0.5002 GB, free: 5.594 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.401e-05/0.4417, allocations: 7.922 kB / 0.5002 GB, free: 5.586 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008798/0.4505, allocations: 4.656 MB / 0.5048 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.4505, allocations: 7.984 kB / 0.5048 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009595/0.4515, allocations: 219.7 kB / 0.505 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001183/0.4527, allocations: 458.8 kB / 0.5054 GB, free: 132 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001035/0.4528, allocations: 31.98 kB / 0.5055 GB, free: 100 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008987/0.4618, allocations: 8.276 MB / 0.5135 GB, free: 7.363 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.251e-06/0.4618, allocations: 4 kB / 0.5135 GB, free: 7.359 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005432/0.4672, allocations: 3.136 MB / 0.5166 GB, free: 4.145 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009874/0.4682, allocations: 326.7 kB / 0.5169 GB, free: 3.824 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003424/0.4685, allocations: 31.98 kB / 0.5169 GB, free: 3.793 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/0.4695, allocations: 87.91 kB / 0.517 GB, free: 3.707 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002312/0.4698, allocations: 100.7 kB / 0.5171 GB, free: 3.609 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.635e-05/0.4699, allocations: 39.98 kB / 0.5172 GB, free: 3.57 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001824/0.4717, allocations: 1.074 MB / 0.5182 GB, free: 2.5 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4717, allocations: 0 / 0.5182 GB, free: 2.5 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001702/0.4734, allocations: 488.1 kB / 0.5187 GB, free: 2.023 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.0004132/0.4738, allocations: 212.6 kB / 0.5189 GB, free: 1.809 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003985/0.4778, allocations: 2.14 MB / 0.521 GB, free: 15.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.4778, allocations: 4.812 kB / 0.521 GB, free: 15.62 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002542/0.4803, allocations: 1.422 MB / 0.5224 GB, free: 14.14 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002202/0.4825, allocations: 494.1 kB / 0.5228 GB, free: 13.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008742/0.4913, allocations: 4.825 MB / 0.5275 GB, free: 8.762 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001984/0.4933, allocations: 1.839 MB / 0.5293 GB, free: 6.895 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005488/0.4938, allocations: 135.4 kB / 0.5295 GB, free: 6.762 MB / 446.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4938, allocations: 0 / 0.5295 GB, free: 6.762 MB / 446.1 MB Notification: Performance of Templates: time 0.2362/0.7301, allocations: 74.23 MB / 0.602 GB, free: 41.17 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 12.560473122866824]