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.001022/0.001022, allocations: 107.8 kB / 16.51 MB, free: 6.707 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.0009736/0.0009736, allocations: 190.6 kB / 17.43 MB, free: 6.066 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.286/1.286, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009442/0.0009444, allocations: 39.28 kB / 300 MB, free: 6.305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08857/0.08953, allocations: 49.44 MB / 349.4 MB, free: 4.855 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01112/0.1007, allocations: 10.24 MB / 359.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006196/0.1069, allocations: 3.396 MB / 363 MB, free: 7.156 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001674/0.1086, allocations: 55.75 kB / 363.1 MB, free: 7.102 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002217/0.1109, allocations: 0.672 MB / 363.8 MB, free: 6.426 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002689/0.1136, allocations: 0.7459 MB / 364.5 MB, free: 5.676 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001389/0.115, allocations: 371.6 kB / 364.9 MB, free: 5.312 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003746/0.1188, allocations: 3.079 MB / 368 MB, free: 2.223 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002624/0.1214, allocations: 2.025 MB / 370 MB, free: 136 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1706/0.292, allocations: 1.116 MB / 371.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001945/0.294, allocations: 1.518 MB / 372.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004671/0.2944, allocations: 208 kB / 372.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000726/0.2952, allocations: 322.1 kB / 373.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000799/0.296, allocations: 0.8018 MB / 373.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001317/0.2973, allocations: 1.373 MB / 375.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004313/0.3016, allocations: 4.228 MB / 379.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3017, allocations: 1.906 kB / 379.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.3017, allocations: 1.156 kB / 379.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.632e-05/0.3017, allocations: 0 / 379.5 MB, free: 10.61 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.005299/0.307, allocations: 3.059 MB / 382.6 MB, free: 9.332 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.3071, allocations: 10.19 kB / 382.6 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007407/0.3078, allocations: 308.3 kB / 382.9 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002238/0.3101, allocations: 1.58 MB / 384.5 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002127/0.3103, allocations: 169 kB / 384.6 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003355/0.3107, allocations: 222.8 kB / 384.9 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00435/0.315, allocations: 2.919 MB / 387.8 MB, free: 6.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.461e-05/0.3151, allocations: 14.2 kB / 387.8 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002057/0.3153, allocations: 86.06 kB / 387.9 MB, free: 6.766 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001249/0.3154, allocations: 115.8 kB / 388 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003686/0.3191, allocations: 2.43 MB / 390.4 MB, free: 5.508 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01129/0.3304, allocations: 9.116 MB / 399.5 MB, free: 15.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002136/0.3326, allocations: 1.694 MB / 401.2 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001586/0.3342, allocations: 0.9946 MB / 402.2 MB, free: 13.44 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003012/0.3345, allocations: 212 kB / 402.4 MB, free: 13.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.791e-05/0.3345, allocations: 47.02 kB / 402.5 MB, free: 13.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 2.856e-06/0.3345, allocations: 0 / 402.5 MB, free: 13.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01437/0.3489, allocations: 6.564 MB / 409 MB, free: 6.547 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.278e-05/0.349, allocations: 64.41 kB / 409.1 MB, free: 6.473 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002551/0.3516, allocations: 1.564 MB / 410.7 MB, free: 4.902 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001136/0.3517, allocations: 45.7 kB / 410.7 MB, free: 4.852 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000869/0.3526, allocations: 1.108 MB / 411.8 MB, free: 3.73 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004492/0.353, allocations: 436 kB / 412.3 MB, free: 3.309 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004897/0.3535, allocations: 271.3 kB / 412.5 MB, free: 3.039 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.3537, allocations: 305.1 kB / 412.8 MB, free: 2.738 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001208/0.3549, allocations: 0.7066 MB / 413.5 MB, free: 2.031 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001742/0.3566, allocations: 1.136 MB / 414.7 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002795/0.3594, allocations: 1.972 MB / 416.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.3594, allocations: 2.906 kB / 416.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004272/0.3637, allocations: 2.516 MB / 419.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.091e-05/0.3638, allocations: 15.94 kB / 419.2 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.164e-05/0.3638, allocations: 12 kB / 419.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001034/0.3648, allocations: 429.4 kB / 419.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/0.3661, allocations: 352.8 kB / 419.9 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006857/0.373, allocations: 6.545 MB / 426.5 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001609/0.3746, allocations: 111.8 kB / 426.6 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001333/0.3748, allocations: 63.98 kB / 426.7 MB, free: 4.289 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.001388/0.3762, allocations: 0.7137 MB / 427.4 MB, free: 3.586 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003304/0.3765, allocations: 169.8 kB / 427.5 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003828/0.3803, allocations: 2.198 MB / 429.7 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-05/0.3804, allocations: 19.94 kB / 429.8 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.3804, allocations: 4 kB / 429.8 MB, free: 1.164 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.628e-05/0.3804, allocations: 7.969 kB / 429.8 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007644/0.3881, allocations: 4.785 MB / 434.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.3881, allocations: 4 kB / 434.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009463/0.389, allocations: 222.3 kB / 434.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001135/0.3902, allocations: 457.8 kB / 435.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.88e-05/0.3903, allocations: 31.98 kB / 435.2 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007367/0.3977, allocations: 7.99 MB / 443.2 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.3977, allocations: 8 kB / 443.2 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005019/0.4027, allocations: 3.221 MB / 446.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008118/0.4035, allocations: 394.9 kB / 446.9 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002394/0.4038, allocations: 35.98 kB / 446.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008973/0.4047, allocations: 83.91 kB / 447 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000235/0.4049, allocations: 92.19 kB / 447.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.48e-05/0.405, allocations: 43.98 kB / 447.1 MB, free: 15.17 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001605/0.4066, allocations: 1.07 MB / 448.2 MB, free: 14.1 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4067, allocations: 3.938 kB / 448.2 MB, free: 14.1 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001676/0.4083, allocations: 488 kB / 448.7 MB, free: 13.62 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.0003615/0.4087, allocations: 200.9 kB / 448.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003536/0.4122, allocations: 2.284 MB / 451.1 MB, free: 11.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4123, allocations: 0 / 451.1 MB, free: 11.14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002314/0.4146, allocations: 1.479 MB / 452.6 MB, free: 9.641 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002035/0.4166, allocations: 454.2 kB / 453.1 MB, free: 9.203 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008896/0.4255, allocations: 5.69 MB / 458.7 MB, free: 3.469 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001611/0.4272, allocations: 1.871 MB / 460.6 MB, free: 1.562 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001278/0.4285, allocations: 394.8 kB / 461 MB, free: 1.172 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003711/0.4288, allocations: 119.4 kB / 461.1 MB, free: 1.055 MB / 366.1 MB Notification: Performance of SimCode: time 6.62e-07/0.4289, allocations: 4 kB / 461.1 MB, free: 1.051 MB / 366.1 MB Notification: Performance of Templates: time 0.04649/0.4753, allocations: 25.31 MB / 486.4 MB, free: 8.047 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