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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001001/0.001001, allocations: 100.8 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001404/0.001404, allocations: 200.5 kB / 17.91 MB, free: 5.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.7 MB / 246.4 MB, free: 11.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002667/0.0002667, allocations: 4 kB / 307.1 MB, free: 1.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1148, allocations: 51.53 MB / 358.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01011/0.1249, allocations: 9.153 MB / 367.8 MB, free: 4.438 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006242/0.1312, allocations: 3.273 MB / 371.1 MB, free: 1.148 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001288/0.1325, allocations: 51.75 kB / 371.1 MB, free: 1.098 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001556/0.1341, allocations: 0.6213 MB / 371.7 MB, free: 484 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1954/0.3295, allocations: 0.6995 MB / 372.4 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001264/0.3308, allocations: 274.3 kB / 372.7 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003941/0.3347, allocations: 2.788 MB / 375.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002036/0.3368, allocations: 1.582 MB / 377.1 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001942/0.3387, allocations: 0.9523 MB / 378 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001961/0.3407, allocations: 1.286 MB / 379.3 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003116/0.341, allocations: 142 kB / 379.5 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00069/0.3417, allocations: 225.4 kB / 379.7 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007715/0.3425, allocations: 0.7049 MB / 380.4 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006318/0.3432, allocations: 0.5141 MB / 380.9 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0037/0.3469, allocations: 3.52 MB / 384.4 MB, free: 8.379 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.3469, allocations: 0.9688 kB / 384.4 MB, free: 8.379 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.165e-06/0.3469, allocations: 0 / 384.4 MB, free: 8.379 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.213e-05/0.347, allocations: 1.875 kB / 384.4 MB, free: 8.379 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.005195/0.3522, allocations: 2.629 MB / 387 MB, free: 6.797 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.3522, allocations: 10.41 kB / 387.1 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009435/0.3532, allocations: 323.5 kB / 387.4 MB, free: 6.637 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002662/0.3559, allocations: 1.525 MB / 388.9 MB, free: 5.949 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001718/0.3561, allocations: 170.9 kB / 389.1 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000355/0.3564, allocations: 223.4 kB / 389.3 MB, free: 5.934 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005506/0.3619, allocations: 2.91 MB / 392.2 MB, free: 5.168 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.142e-05/0.362, allocations: 13.69 kB / 392.2 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002256/0.3622, allocations: 89.36 kB / 392.3 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001399/0.3624, allocations: 114.4 kB / 392.4 MB, free: 5.145 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004389/0.3668, allocations: 2.442 MB / 394.8 MB, free: 3.941 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01358/0.3804, allocations: 9.164 MB / 404 MB, free: 12.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002238/0.3826, allocations: 1.712 MB / 405.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001657/0.3843, allocations: 1.008 MB / 406.7 MB, free: 9.512 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003116/0.3846, allocations: 207.5 kB / 406.9 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.877e-05/0.3847, allocations: 55.48 kB / 407 MB, free: 9.211 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.186e-06/0.3847, allocations: 4 kB / 407 MB, free: 9.207 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01436/0.3991, allocations: 6.683 MB / 413.7 MB, free: 2.371 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.3992, allocations: 64.41 kB / 413.7 MB, free: 2.297 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002306/0.4015, allocations: 1.558 MB / 415.3 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.383e-05/0.4016, allocations: 49.7 kB / 415.3 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007757/0.4024, allocations: 1.096 MB / 416.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003352/0.4027, allocations: 432.9 kB / 416.9 MB, free: 15.15 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.553e-05/0.4028, allocations: 32 kB / 416.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.403, allocations: 369.9 kB / 417.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001171/0.4041, allocations: 0.7105 MB / 418 MB, free: 14.04 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001404/0.4056, allocations: 1.15 MB / 419.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/0.4069, allocations: 0.8974 MB / 420 MB, free: 11.81 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.407, allocations: 8 kB / 420 MB, free: 11.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004018/0.411, allocations: 2.536 MB / 422.6 MB, free: 9.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.555e-05/0.411, allocations: 8 kB / 422.6 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.057e-05/0.411, allocations: 16 kB / 422.6 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009373/0.412, allocations: 419.4 kB / 423 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001263/0.4133, allocations: 355.5 kB / 423.3 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006404/0.4197, allocations: 6.55 MB / 429.9 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001432/0.4211, allocations: 111.8 kB / 430 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001515/0.4213, allocations: 67.98 kB / 430.1 MB, free: 1.32 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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001601/0.4229, allocations: 0.7083 MB / 430.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004069/0.4233, allocations: 173.9 kB / 430.9 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003988/0.4273, allocations: 2.221 MB / 433.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.259e-05/0.4273, allocations: 12 kB / 433.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.275e-05/0.4274, allocations: 4 kB / 433.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.261e-05/0.4274, allocations: 3.984 kB / 433.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009159/0.4365, allocations: 4.809 MB / 438 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/0.4366, allocations: 4 kB / 438 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009573/0.4375, allocations: 231.6 kB / 438.2 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001185/0.4387, allocations: 449.6 kB / 438.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001292/0.4389, allocations: 43.98 kB / 438.7 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00894/0.4478, allocations: 7.971 MB / 446.7 MB, free: 0 / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.155e-05/0.4479, allocations: 4.047 kB / 446.7 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005453/0.4533, allocations: 3.24 MB / 449.9 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00123/0.4546, allocations: 414.9 kB / 450.3 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006017/0.4552, allocations: 31.98 kB / 450.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001291/0.4565, allocations: 91.91 kB / 450.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002281/0.4567, allocations: 96.77 kB / 450.5 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.848e-05/0.4568, allocations: 47.92 kB / 450.6 MB, free: 11.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002264/0.4591, allocations: 1.059 MB / 451.6 MB, free: 10.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4591, allocations: 3.938 kB / 451.6 MB, free: 10.92 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002667/0.4618, allocations: 484 kB / 452.1 MB, free: 10.45 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 12,(1,100.0%) 6,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004744/0.4623, allocations: 171.3 kB / 452.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004115/0.4664, allocations: 2.306 MB / 454.6 MB, free: 7.914 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.4664, allocations: 0 / 454.6 MB, free: 7.914 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002453/0.4689, allocations: 1.479 MB / 456.1 MB, free: 6.387 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002969/0.4719, allocations: 455.8 kB / 456.5 MB, free: 5.949 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01044/0.4823, allocations: 5.583 MB / 462.1 MB, free: 292 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002431/0.4848, allocations: 1.871 MB / 464 MB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001551/0.4863, allocations: 390.8 kB / 464.4 MB, free: 14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004828/0.4868, allocations: 123.4 kB / 464.5 MB, free: 13.88 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4868, allocations: 0 / 464.5 MB, free: 13.88 MB / 382.1 MB Notification: Performance of Templates: time 0.0479/0.5347, allocations: 24.34 MB / 488.8 MB, free: 5.793 MB / 398.1 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/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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches