Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001172/0.001172, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.519/1.519, allocations: 226.7 MB / 245.5 MB, free: 6.996 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001018/0.001018, allocations: 106.3 kB / 296.7 MB, free: 6.461 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009372/0.0009374, allocations: 55.91 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2123/0.2133, allocations: 50.46 MB / 407.1 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.008663/0.2219, allocations: 10.26 MB / 417.3 MB, free: 17.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005469/0.2275, allocations: 3.44 MB / 420.8 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002095/0.2296, allocations: 55.75 kB / 420.8 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002181/0.2318, allocations: 0.6798 MB / 421.5 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002667/0.2345, allocations: 0.7575 MB / 422.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001085/0.2356, allocations: 379.6 kB / 422.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002946/0.2386, allocations: 3.123 MB / 425.7 MB, free: 9.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002415/0.241, allocations: 2.025 MB / 427.8 MB, free: 6.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001609/0.2426, allocations: 1.128 MB / 428.9 MB, free: 5.848 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001947/0.2446, allocations: 1.514 MB / 430.4 MB, free: 4.328 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000414/0.245, allocations: 208 kB / 430.6 MB, free: 4.125 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000788/0.2458, allocations: 323.8 kB / 430.9 MB, free: 3.809 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005636/0.2464, allocations: 0.8139 MB / 431.7 MB, free: 2.992 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001013/0.2474, allocations: 1.368 MB / 433.1 MB, free: 1.617 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002944/0.2504, allocations: 4.24 MB / 437.3 MB, free: 13.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.2504, allocations: 0 / 437.3 MB, free: 13.36 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2504, allocations: 0 / 437.3 MB, free: 13.36 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.487e-05/0.2505, allocations: 4 kB / 437.4 MB, free: 13.36 MB / 314.7 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.005742/0.2562, allocations: 3.053 MB / 440.4 MB, free: 10.24 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.2563, allocations: 12.02 kB / 440.4 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007602/0.257, allocations: 309.5 kB / 440.7 MB, free: 9.926 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002926/0.26, allocations: 1.579 MB / 442.3 MB, free: 8.289 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001809/0.2602, allocations: 176.5 kB / 442.5 MB, free: 8.113 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003704/0.2605, allocations: 223.9 kB / 442.7 MB, free: 7.895 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005299/0.2659, allocations: 2.917 MB / 445.6 MB, free: 4.891 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.128e-05/0.2659, allocations: 11.91 kB / 445.6 MB, free: 4.879 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002194/0.2662, allocations: 88 kB / 445.7 MB, free: 4.793 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001247/0.2663, allocations: 108.3 kB / 445.8 MB, free: 4.684 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003805/0.2701, allocations: 2.437 MB / 448.2 MB, free: 2.23 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01389/0.284, allocations: 9.113 MB / 457.4 MB, free: 8.824 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002279/0.2864, allocations: 1.701 MB / 459.1 MB, free: 7.016 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001674/0.2881, allocations: 0.9839 MB / 460 MB, free: 6.031 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002992/0.2884, allocations: 219.1 kB / 460.3 MB, free: 5.777 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.686e-05/0.2884, allocations: 40.03 kB / 460.3 MB, free: 5.73 MB / 330.7 MB Notification: Performance of pre-optimization done (n=105): time 4.329e-06/0.2884, allocations: 0 / 460.3 MB, free: 5.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.01376/0.3022, allocations: 6.575 MB / 466.9 MB, free: 14.99 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.999e-05/0.3023, allocations: 64.41 kB / 466.9 MB, free: 14.91 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002579/0.3049, allocations: 1.565 MB / 468.5 MB, free: 13.34 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.871e-05/0.305, allocations: 45.7 kB / 468.5 MB, free: 13.29 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008431/0.3059, allocations: 1.116 MB / 469.7 MB, free: 12.16 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000311/0.3062, allocations: 429.8 kB / 470.1 MB, free: 11.73 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004133/0.3066, allocations: 279.3 kB / 470.4 MB, free: 11.45 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.117e-05/0.3067, allocations: 305.1 kB / 470.7 MB, free: 11.15 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001077/0.3078, allocations: 0.7066 MB / 471.4 MB, free: 10.45 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001316/0.3091, allocations: 1.138 MB / 472.5 MB, free: 9.125 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002553/0.3117, allocations: 1.967 MB / 474.5 MB, free: 6.973 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.445e-06/0.3117, allocations: 8 kB / 474.5 MB, free: 6.965 MB / 346.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.00407/0.3158, allocations: 2.518 MB / 477 MB, free: 4.406 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.86e-05/0.3158, allocations: 12 kB / 477 MB, free: 4.395 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.341e-05/0.3158, allocations: 12 kB / 477 MB, free: 4.383 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009532/0.3168, allocations: 419.4 kB / 477.4 MB, free: 3.961 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/0.3181, allocations: 351.4 kB / 477.8 MB, free: 3.617 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006267/0.3243, allocations: 6.548 MB / 484.3 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001437/0.3258, allocations: 111.8 kB / 484.4 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.3259, allocations: 63.98 kB / 484.5 MB, free: 12.49 MB / 362.7 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.001191/0.3271, allocations: 0.7141 MB / 485.2 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003016/0.3274, allocations: 177.8 kB / 485.4 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003615/0.3311, allocations: 2.202 MB / 487.6 MB, free: 9.355 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/0.3311, allocations: 12 kB / 487.6 MB, free: 9.344 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.3311, allocations: 4 kB / 487.6 MB, free: 9.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.3311, allocations: 3.984 kB / 487.6 MB, free: 9.336 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008444/0.3396, allocations: 4.784 MB / 492.4 MB, free: 4.402 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/0.3396, allocations: 7.984 kB / 492.4 MB, free: 4.395 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009293/0.3405, allocations: 219.7 kB / 492.6 MB, free: 4.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001173/0.3417, allocations: 467.3 kB / 493.1 MB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001041/0.3418, allocations: 35.98 kB / 493.1 MB, free: 3.676 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007587/0.3494, allocations: 7.977 MB / 0.4893 GB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.988e-06/0.3495, allocations: 11.98 kB / 0.4893 GB, free: 11.15 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2302/0.5797, allocations: 23.94 MB / 0.5127 GB, free: 81.37 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007863/0.5805, allocations: 403.7 kB / 0.5131 GB, free: 81.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002063/0.5807, allocations: 31 kB / 0.5131 GB, free: 81.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009565/0.5817, allocations: 89.2 kB / 0.5132 GB, free: 81.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002994/0.582, allocations: 97.45 kB / 0.5133 GB, free: 81.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.339e-05/0.5821, allocations: 39.2 kB / 0.5133 GB, free: 81.13 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001401/0.5835, allocations: 1.068 MB / 0.5144 GB, free: 80.72 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5835, allocations: 0 / 0.5144 GB, free: 80.72 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002294/0.5858, allocations: 0.6702 MB / 0.515 GB, free: 80.66 MB / 378.7 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.000392/0.5862, allocations: 198.2 kB / 0.5152 GB, free: 80.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003093/0.5893, allocations: 2.29 MB / 0.5175 GB, free: 79.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.5893, allocations: 0 / 0.5175 GB, free: 79.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001989/0.5913, allocations: 1.47 MB / 0.5189 GB, free: 78.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002344/0.5937, allocations: 453.3 kB / 0.5193 GB, free: 78.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008607/0.6023, allocations: 7.189 MB / 0.5264 GB, free: 73.06 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001216/0.6036, allocations: 1.913 MB / 0.5282 GB, free: 71.49 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001262/0.6048, allocations: 406.9 kB / 0.5286 GB, free: 71.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003672/0.6052, allocations: 127.4 kB / 0.5287 GB, free: 70.97 MB / 378.7 MB Notification: Performance of SimCode: time 6.71e-07/0.6052, allocations: 0.7656 kB / 0.5287 GB, free: 70.97 MB / 378.7 MB Notification: Performance of Templates: time 0.03994/0.6452, allocations: 30.63 MB / 0.5586 GB, free: 40.57 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches