Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.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.001333/0.001333, allocations: 123.5 kB / 18.46 MB, free: 4.613 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.001369/0.001369, allocations: 188.3 kB / 21.39 MB, free: 1.688 MB / 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.454/1.454, allocations: 225.6 MB / 249.8 MB, free: 3.621 MB / 190.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_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.0.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.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 51.91 kB / 366.8 MB, free: 340 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09393/0.09543, allocations: 52.14 MB / 419 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01289/0.1083, allocations: 10.37 MB / 429.3 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007007/0.1153, allocations: 3.431 MB / 432.8 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001615/0.1169, allocations: 59.75 kB / 432.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002316/0.1193, allocations: 0.8232 MB / 433.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002866/0.1221, allocations: 0.8737 MB / 434.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001098/0.1232, allocations: 427.4 kB / 434.9 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003816/0.127, allocations: 2.75 MB / 437.7 MB, free: 9.305 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002493/0.1295, allocations: 1.723 MB / 439.4 MB, free: 7.512 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002178/0.1317, allocations: 1.265 MB / 440.7 MB, free: 6.242 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003185/0.1349, allocations: 1.615 MB / 442.3 MB, free: 4.621 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008608/0.1358, allocations: 336 kB / 442.6 MB, free: 4.293 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001207/0.137, allocations: 435.8 kB / 443 MB, free: 3.867 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001129/0.1381, allocations: 0.9466 MB / 444 MB, free: 2.918 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002441/0.1405, allocations: 1.517 MB / 445.5 MB, free: 1.395 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2192/0.3598, allocations: 4.384 MB / 449.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.798e-06/0.3598, allocations: 0.6094 kB / 449.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.3598, allocations: 4.031 kB / 449.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001436/0.3599, allocations: 0 / 449.9 MB, free: 15.8 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.008962/0.3689, allocations: 3.126 MB / 453 MB, free: 14.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.3689, allocations: 9.094 kB / 453 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000902/0.3698, allocations: 328.1 kB / 453.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00319/0.373, allocations: 1.636 MB / 455 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001375/0.3732, allocations: 165.7 kB / 455.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004019/0.3736, allocations: 226.6 kB / 455.4 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006542/0.3801, allocations: 2.917 MB / 458.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.391e-05/0.3802, allocations: 6.953 kB / 458.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002476/0.3805, allocations: 88.98 kB / 458.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000168/0.3806, allocations: 113.7 kB / 458.5 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00527/0.3859, allocations: 2.437 MB / 460.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01451/0.4004, allocations: 9.04 MB / 470 MB, free: 9.168 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002407/0.4028, allocations: 1.629 MB / 471.6 MB, free: 8.059 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001627/0.4044, allocations: 0.9255 MB / 472.5 MB, free: 7.617 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002734/0.4047, allocations: 208.2 kB / 472.7 MB, free: 7.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.4047, allocations: 44.72 kB / 472.8 MB, free: 7.363 MB / 366.1 MB Notification: Performance of pre-optimization done (n=105): time 3.506e-06/0.4047, allocations: 0.8906 kB / 472.8 MB, free: 7.363 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01365/0.4184, allocations: 6.589 MB / 479.4 MB, free: 3.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.75e-05/0.4184, allocations: 72.16 kB / 479.4 MB, free: 3.504 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001925/0.4203, allocations: 1.567 MB / 481 MB, free: 2.664 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001014/0.4204, allocations: 48.17 kB / 481 MB, free: 2.617 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004944/0.4209, allocations: 1.13 MB / 482.2 MB, free: 1.617 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002532/0.4212, allocations: 446.6 kB / 482.6 MB, free: 1.238 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003552/0.4216, allocations: 276 kB / 482.9 MB, free: 1.078 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.968e-05/0.4216, allocations: 301.1 kB / 483.2 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009936/0.4226, allocations: 0.7152 MB / 483.9 MB, free: 436 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001286/0.4239, allocations: 1.137 MB / 485 MB, free: 15.53 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002651/0.4265, allocations: 1.966 MB / 487 MB, free: 14.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/0.4265, allocations: 3.375 kB / 487 MB, free: 14.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004152/0.4307, allocations: 2.527 MB / 489.5 MB, free: 12.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/0.4307, allocations: 13.72 kB / 489.5 MB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.084e-05/0.4307, allocations: 14.97 kB / 489.6 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001065/0.4318, allocations: 423.3 kB / 490 MB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/0.4331, allocations: 347.4 kB / 490.3 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007935/0.4411, allocations: 7.128 MB / 497.4 MB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001623/0.4427, allocations: 109.9 kB / 497.5 MB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001405/0.4428, allocations: 60 kB / 497.6 MB, free: 4.578 MB / 382.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.001399/0.4442, allocations: 0.7201 MB / 498.3 MB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003795/0.4446, allocations: 178.9 kB / 498.5 MB, free: 3.695 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004254/0.4489, allocations: 2.195 MB / 0.489 GB, free: 1.469 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.4489, allocations: 21.08 kB / 0.489 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.757e-06/0.4489, allocations: 4 kB / 0.489 GB, free: 1.445 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.4489, allocations: 3.984 kB / 0.489 GB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008592/0.4575, allocations: 4.759 MB / 0.4936 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.959e-06/0.4575, allocations: 4 kB / 0.4936 GB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009737/0.4585, allocations: 226.3 kB / 0.4938 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001225/0.4597, allocations: 455.6 kB / 0.4943 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001037/0.4598, allocations: 35.98 kB / 0.4943 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009824/0.4696, allocations: 8.689 MB / 0.5028 GB, free: 2.719 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.4696, allocations: 11.41 kB / 0.5028 GB, free: 2.711 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005773/0.4754, allocations: 3.215 MB / 0.506 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009996/0.4764, allocations: 414.8 kB / 0.5063 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002874/0.4767, allocations: 32 kB / 0.5064 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009577/0.4776, allocations: 87.89 kB / 0.5065 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002506/0.4779, allocations: 98.38 kB / 0.5066 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.412e-05/0.478, allocations: 35.98 kB / 0.5066 GB, free: 14.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001655/0.4796, allocations: 1.074 MB / 0.5076 GB, free: 13.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4796, allocations: 0 / 0.5076 GB, free: 13.68 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001812/0.4814, allocations: 487.9 kB / 0.5081 GB, free: 13.2 MB / 414.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.0003856/0.4818, allocations: 193.8 kB / 0.5083 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003964/0.4858, allocations: 2.226 MB / 0.5105 GB, free: 10.79 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.4858, allocations: 4 kB / 0.5105 GB, free: 10.79 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002553/0.4884, allocations: 1.422 MB / 0.5119 GB, free: 9.344 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002315/0.4907, allocations: 472.5 kB / 0.5123 GB, free: 8.898 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00824/0.4989, allocations: 4.808 MB / 0.517 GB, free: 4.039 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001751/0.5007, allocations: 1.838 MB / 0.5188 GB, free: 2.172 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005801/0.5012, allocations: 135.4 kB / 0.5189 GB, free: 2.039 MB / 414.1 MB Notification: Performance of SimCode: time 9.01e-07/0.5012, allocations: 0 / 0.5189 GB, free: 2.039 MB / 414.1 MB Notification: Performance of Templates: time 0.08888/0.5901, allocations: 74.11 MB / 0.5913 GB, free: 7.992 MB / 494.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 13.013887049164623]