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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=30000,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=30000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00113/0.001131, allocations: 93.06 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 175.9 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002447/0.0002447, allocations: 4 kB / 301.4 MB, free: 5.922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09192/0.09218, allocations: 50.42 MB / 351.8 MB, free: 3.484 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01014/0.1024, allocations: 9.687 MB / 361.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006134/0.1085, allocations: 3.365 MB / 364.9 MB, free: 6.375 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001377/0.1099, allocations: 51.75 kB / 364.9 MB, free: 6.324 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002061/0.112, allocations: 0.6798 MB / 365.6 MB, free: 5.641 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002781/0.1148, allocations: 0.7498 MB / 366.4 MB, free: 4.887 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001126/0.116, allocations: 367.6 kB / 366.7 MB, free: 4.527 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003688/0.1197, allocations: 3.078 MB / 369.8 MB, free: 1.441 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1842/0.3039, allocations: 2.006 MB / 371.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002252/0.3062, allocations: 0.958 MB / 372.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002222/0.3085, allocations: 1.328 MB / 374.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003862/0.3089, allocations: 141.2 kB / 374.2 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006959/0.3096, allocations: 252.1 kB / 374.5 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008496/0.3104, allocations: 0.7064 MB / 375.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001389/0.3118, allocations: 1.27 MB / 376.5 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004584/0.3164, allocations: 4.094 MB / 380.6 MB, free: 9.387 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.3164, allocations: 0 / 380.6 MB, free: 9.387 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3164, allocations: 0 / 380.6 MB, free: 9.387 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001095/0.3166, allocations: 5.375 kB / 380.6 MB, free: 9.383 MB / 302.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.005936/0.3225, allocations: 2.599 MB / 383.2 MB, free: 8.137 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.3226, allocations: 9.875 kB / 383.2 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009339/0.3235, allocations: 306.8 kB / 383.5 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002542/0.3261, allocations: 1.577 MB / 385.1 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001818/0.3263, allocations: 179.8 kB / 385.2 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003658/0.3266, allocations: 224.1 kB / 385.4 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005293/0.3319, allocations: 2.927 MB / 388.4 MB, free: 6.617 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.143e-05/0.332, allocations: 10.33 kB / 388.4 MB, free: 6.609 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002138/0.3322, allocations: 89.8 kB / 388.5 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001296/0.3324, allocations: 117.1 kB / 388.6 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004657/0.337, allocations: 2.453 MB / 391 MB, free: 5.281 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01268/0.3497, allocations: 9.159 MB / 400.2 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002224/0.352, allocations: 1.711 MB / 401.9 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0017/0.3537, allocations: 1.009 MB / 402.9 MB, free: 13.17 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000277/0.354, allocations: 206.4 kB / 403.1 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.713e-05/0.354, allocations: 48.12 kB / 403.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 2.805e-06/0.3541, allocations: 0 / 403.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01482/0.3689, allocations: 6.698 MB / 409.9 MB, free: 6.25 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.232e-05/0.369, allocations: 64.41 kB / 409.9 MB, free: 6.176 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002452/0.3714, allocations: 1.557 MB / 411.5 MB, free: 4.609 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001009/0.3715, allocations: 46.64 kB / 411.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008066/0.3723, allocations: 1.113 MB / 412.6 MB, free: 3.438 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003485/0.3727, allocations: 431.9 kB / 413.1 MB, free: 3.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001881/0.3729, allocations: 125.6 kB / 413.2 MB, free: 2.891 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.616e-05/0.373, allocations: 305.1 kB / 413.5 MB, free: 2.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/0.3743, allocations: 0.7144 MB / 414.2 MB, free: 1.875 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001506/0.3758, allocations: 1.157 MB / 415.4 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002902/0.3787, allocations: 1.986 MB / 417.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.288e-06/0.3787, allocations: 4 kB / 417.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004757/0.3835, allocations: 2.542 MB / 419.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.791e-05/0.3835, allocations: 16.69 kB / 419.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.196e-05/0.3835, allocations: 12 kB / 419.9 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001044/0.3846, allocations: 425.6 kB / 420.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001335/0.3859, allocations: 351.6 kB / 420.7 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007383/0.3933, allocations: 6.563 MB / 427.2 MB, free: 4.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001887/0.3953, allocations: 111.8 kB / 427.3 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001437/0.3954, allocations: 71.92 kB / 427.4 MB, free: 4.051 MB / 334.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.001683/0.3971, allocations: 0.7137 MB / 428.1 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003779/0.3975, allocations: 173.8 kB / 428.3 MB, free: 3.176 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004142/0.4016, allocations: 2.226 MB / 430.5 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.314e-05/0.4017, allocations: 15.94 kB / 430.5 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.4017, allocations: 4 kB / 430.5 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.475e-05/0.4017, allocations: 7.969 kB / 430.6 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008828/0.4105, allocations: 4.812 MB / 435.4 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.748e-06/0.4106, allocations: 4.469 kB / 435.4 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/0.4116, allocations: 230.4 kB / 435.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00125/0.4129, allocations: 465 kB / 436 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/0.413, allocations: 35.98 kB / 436.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008282/0.4213, allocations: 7.987 MB / 444.1 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.404e-05/0.4213, allocations: 4 kB / 444.1 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005963/0.4273, allocations: 3.251 MB / 447.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001123/0.4285, allocations: 402.8 kB / 447.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005831/0.4291, allocations: 35.98 kB / 447.8 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001445/0.4305, allocations: 91.91 kB / 447.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003179/0.4309, allocations: 100.2 kB / 447.9 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001226/0.431, allocations: 39.98 kB / 448 MB, free: 14.81 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002522/0.4335, allocations: 1.066 MB / 449 MB, free: 13.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4335, allocations: 0 / 449 MB, free: 13.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002363/0.4359, allocations: 484 kB / 449.5 MB, free: 13.27 MB / 366.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.0004802/0.4364, allocations: 205 kB / 449.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004343/0.4408, allocations: 2.308 MB / 452 MB, free: 10.76 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.4408, allocations: 0 / 452 MB, free: 10.76 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002682/0.4435, allocations: 1.484 MB / 453.5 MB, free: 9.258 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004258/0.4477, allocations: 460.9 kB / 454 MB, free: 8.816 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0108/0.4586, allocations: 5.846 MB / 459.8 MB, free: 2.906 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002649/0.4613, allocations: 1.867 MB / 461.7 MB, free: 1.004 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001928/0.4632, allocations: 394.9 kB / 462.1 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006987/0.4639, allocations: 119.4 kB / 462.2 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of SimCode: time 1.143e-06/0.4639, allocations: 0 / 462.2 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of Templates: time 0.04939/0.5133, allocations: 24.93 MB / 487.1 MB, free: 7.871 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches