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.001847/0.001847, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.002286/0.002286, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.522/1.522, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.001812/0.001812, allocations: 47.92 kB / 373.5 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1162, allocations: 53.34 MB / 426.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.2636/0.3799, allocations: 10.39 MB / 437.2 MB, free: 5.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006633/0.3865, allocations: 3.496 MB / 440.7 MB, free: 3.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001819/0.3883, allocations: 74.78 kB / 440.8 MB, free: 3.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002164/0.3905, allocations: 0.8284 MB / 441.6 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00305/0.3935, allocations: 0.8797 MB / 442.5 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001036/0.3946, allocations: 427.3 kB / 442.9 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003217/0.3978, allocations: 2.757 MB / 445.7 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002153/0.3999, allocations: 1.724 MB / 447.4 MB, free: 456 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002153/0.4021, allocations: 1.303 MB / 448.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002701/0.4048, allocations: 1.619 MB / 450.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005201/0.4053, allocations: 333.3 kB / 450.6 MB, free: 15.08 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00101/0.4063, allocations: 445.3 kB / 451.1 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001114/0.4074, allocations: 0.9506 MB / 452 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002144/0.4096, allocations: 1.512 MB / 453.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005922/0.4155, allocations: 4.411 MB / 457.9 MB, free: 11.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.4155, allocations: 0 / 457.9 MB, free: 11.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.4155, allocations: 0 / 457.9 MB, free: 11.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001069/0.4156, allocations: 4.844 kB / 458 MB, free: 11.23 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.008056/0.4237, allocations: 3.133 MB / 461.1 MB, free: 9.035 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.4237, allocations: 9.094 kB / 461.1 MB, free: 9.035 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001197/0.4249, allocations: 329.3 kB / 461.4 MB, free: 8.871 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003188/0.4281, allocations: 1.639 MB / 463.1 MB, free: 7.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001688/0.4283, allocations: 174 kB / 463.2 MB, free: 7.594 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003576/0.4286, allocations: 224.8 kB / 463.4 MB, free: 7.516 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00555/0.4342, allocations: 2.917 MB / 466.4 MB, free: 5.773 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.083e-05/0.4342, allocations: 10.62 kB / 466.4 MB, free: 5.766 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002285/0.4345, allocations: 88.03 kB / 466.5 MB, free: 5.699 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001324/0.4346, allocations: 111.1 kB / 466.6 MB, free: 5.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004802/0.4394, allocations: 2.428 MB / 469 MB, free: 4.441 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01681/0.4562, allocations: 9.047 MB / 478 MB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002719/0.4589, allocations: 1.634 MB / 479.7 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001886/0.4608, allocations: 0.9213 MB / 480.6 MB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003359/0.4612, allocations: 207.2 kB / 480.8 MB, free: 9.938 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.214e-05/0.4612, allocations: 43.56 kB / 480.8 MB, free: 9.887 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 2.945e-06/0.4612, allocations: 7.938 kB / 480.8 MB, free: 9.879 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01624/0.4775, allocations: 6.59 MB / 487.4 MB, free: 3.121 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/0.4775, allocations: 64.41 kB / 487.5 MB, free: 3.047 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002714/0.4802, allocations: 1.573 MB / 489.1 MB, free: 1.465 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001198/0.4803, allocations: 45.7 kB / 489.1 MB, free: 1.414 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009824/0.4813, allocations: 1.13 MB / 490.2 MB, free: 276 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004641/0.4818, allocations: 448.3 kB / 490.7 MB, free: 15.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004987/0.4823, allocations: 275.5 kB / 491 MB, free: 15.55 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.4824, allocations: 305.1 kB / 491.3 MB, free: 15.25 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001483/0.4839, allocations: 0.7105 MB / 492 MB, free: 14.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00188/0.4858, allocations: 1.143 MB / 493.1 MB, free: 13.21 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003185/0.489, allocations: 1.971 MB / 495.1 MB, free: 11.05 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.799e-06/0.489, allocations: 4 kB / 495.1 MB, free: 11.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.00505/0.494, allocations: 2.527 MB / 497.6 MB, free: 8.488 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.072e-05/0.4941, allocations: 11.94 kB / 497.6 MB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.561e-05/0.4941, allocations: 16 kB / 497.6 MB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001168/0.4953, allocations: 421.5 kB / 498 MB, free: 8.039 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001405/0.4967, allocations: 351.4 kB / 498.4 MB, free: 7.695 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008708/0.5054, allocations: 7.129 MB / 0.4937 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001777/0.5072, allocations: 107.8 kB / 0.4938 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001259/0.5073, allocations: 60 kB / 0.4938 GB, free: 0 / 398.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.001424/0.5087, allocations: 0.7237 MB / 0.4945 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003597/0.5091, allocations: 178.9 kB / 0.4947 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004149/0.5132, allocations: 2.19 MB / 0.4968 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.441e-05/0.5132, allocations: 12 kB / 0.4969 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/0.5132, allocations: 7.984 kB / 0.4969 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/0.5133, allocations: 7.922 kB / 0.4969 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009124/0.5224, allocations: 4.756 MB / 0.5015 GB, free: 7.934 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.447e-06/0.5224, allocations: 4 kB / 0.5015 GB, free: 7.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001004/0.5234, allocations: 220.1 kB / 0.5017 GB, free: 7.715 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001307/0.5247, allocations: 462.9 kB / 0.5022 GB, free: 7.25 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.864e-05/0.5248, allocations: 35.98 kB / 0.5022 GB, free: 7.215 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009728/0.5345, allocations: 8.697 MB / 0.5107 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/0.5345, allocations: 4 kB / 0.5107 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005959/0.5405, allocations: 3.211 MB / 0.5138 GB, free: 10.65 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001128/0.5416, allocations: 415.8 kB / 0.5142 GB, free: 10.22 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002304/0.5418, allocations: 32 kB / 0.5143 GB, free: 10.19 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009752/0.5428, allocations: 83.89 kB / 0.5143 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002657/0.5431, allocations: 103.1 kB / 0.5144 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.801e-05/0.5432, allocations: 39.98 kB / 0.5145 GB, free: 9.973 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001753/0.5449, allocations: 1.071 MB / 0.5155 GB, free: 8.906 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5449, allocations: 3.938 kB / 0.5155 GB, free: 8.902 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001896/0.5468, allocations: 484 kB / 0.516 GB, free: 8.43 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.0004193/0.5472, allocations: 200.6 kB / 0.5162 GB, free: 8.223 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004158/0.5514, allocations: 2.227 MB / 0.5184 GB, free: 5.938 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.511e-06/0.5514, allocations: 384 / 0.5184 GB, free: 5.938 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002602/0.554, allocations: 1.422 MB / 0.5197 GB, free: 4.465 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002524/0.5565, allocations: 489.7 kB / 0.5202 GB, free: 4.008 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008382/0.5649, allocations: 4.736 MB / 0.5248 GB, free: 15.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001802/0.5667, allocations: 1.871 MB / 0.5267 GB, free: 13.29 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001304/0.568, allocations: 386.9 kB / 0.527 GB, free: 12.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000389/0.5684, allocations: 127.4 kB / 0.5272 GB, free: 12.78 MB / 446.1 MB Notification: Performance of SimCode: time 1.954e-06/0.5684, allocations: 0 / 0.5272 GB, free: 12.78 MB / 446.1 MB Notification: Performance of Templates: time 0.05351/0.6219, allocations: 27.3 MB / 0.5538 GB, free: 1.719 MB / 462.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins/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: 5.938146650791168]