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.001669/0.001669, allocations: 106.8 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002123/0.002123, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 227.4 MB / 246.4 MB, free: 9.086 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 59.78 kB / 306.4 MB, free: 0.7344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1244, allocations: 50.53 MB / 357 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01228/0.1367, allocations: 10.28 MB / 367.2 MB, free: 3.875 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006842/0.1436, allocations: 3.443 MB / 370.7 MB, free: 424 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001918/0.1455, allocations: 55.75 kB / 370.7 MB, free: 368 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2379/0.3835, allocations: 0.6847 MB / 371.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004707/0.3883, allocations: 0.7463 MB / 372.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001906/0.3902, allocations: 372.7 kB / 372.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007675/0.3979, allocations: 2.75 MB / 375.3 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003867/0.4018, allocations: 2.406 MB / 377.7 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003257/0.4051, allocations: 1.274 MB / 379 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003659/0.4088, allocations: 1.609 MB / 380.6 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009084/0.4097, allocations: 334.3 kB / 380.9 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001667/0.4114, allocations: 447.2 kB / 381.3 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00122/0.4126, allocations: 0.9393 MB / 382.3 MB, free: 7.836 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003347/0.416, allocations: 1.511 MB / 383.8 MB, free: 6.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00663/0.4226, allocations: 4.342 MB / 388.1 MB, free: 5.203 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.4227, allocations: 0 / 388.1 MB, free: 5.203 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.4227, allocations: 3.938 kB / 388.1 MB, free: 5.199 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001742/0.4229, allocations: 0 / 388.1 MB, free: 5.199 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.008694/0.4316, allocations: 3.063 MB / 391.2 MB, free: 3.086 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.4316, allocations: 9.25 kB / 391.2 MB, free: 3.086 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001202/0.4328, allocations: 310.1 kB / 391.5 MB, free: 2.938 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003248/0.4361, allocations: 1.583 MB / 393.1 MB, free: 1.809 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001888/0.4363, allocations: 169.1 kB / 393.3 MB, free: 1.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003874/0.4367, allocations: 226.5 kB / 393.5 MB, free: 1.652 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006264/0.443, allocations: 2.935 MB / 396.4 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.508e-05/0.4431, allocations: 7.031 kB / 396.4 MB, free: 15.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002571/0.4434, allocations: 87.83 kB / 396.5 MB, free: 15.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001658/0.4435, allocations: 114.6 kB / 396.6 MB, free: 15.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005023/0.4486, allocations: 2.432 MB / 399.1 MB, free: 14.62 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01778/0.4664, allocations: 9.126 MB / 408.2 MB, free: 5.684 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002614/0.469, allocations: 1.699 MB / 409.9 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001872/0.4709, allocations: 0.9955 MB / 410.9 MB, free: 2.891 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003724/0.4713, allocations: 210.2 kB / 411.1 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.76e-05/0.4714, allocations: 47.56 kB / 411.1 MB, free: 2.594 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.527e-06/0.4714, allocations: 0 / 411.1 MB, free: 2.594 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01605/0.4874, allocations: 6.57 MB / 417.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.665e-05/0.4875, allocations: 64.41 kB / 417.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002817/0.4903, allocations: 1.569 MB / 419.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001615/0.4905, allocations: 49.7 kB / 419.4 MB, free: 10.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008719/0.4914, allocations: 1.103 MB / 420.5 MB, free: 9.043 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004305/0.4918, allocations: 435 kB / 420.9 MB, free: 8.621 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004872/0.4923, allocations: 271.4 kB / 421.2 MB, free: 8.352 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.4925, allocations: 310.8 kB / 421.5 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001229/0.4937, allocations: 0.7066 MB / 422.2 MB, free: 7.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001646/0.4954, allocations: 1.138 MB / 423.3 MB, free: 6.023 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003024/0.4984, allocations: 1.968 MB / 425.3 MB, free: 3.875 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.041e-05/0.4984, allocations: 4 kB / 425.3 MB, free: 3.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004985/0.5034, allocations: 2.518 MB / 427.8 MB, free: 1.312 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.167e-05/0.5035, allocations: 18.91 kB / 427.8 MB, free: 1.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.446e-05/0.5035, allocations: 12 kB / 427.8 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00114/0.5046, allocations: 431.3 kB / 428.3 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/0.506, allocations: 343.5 kB / 428.6 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007918/0.5139, allocations: 7.133 MB / 435.7 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002068/0.516, allocations: 107.8 kB / 435.8 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000153/0.5162, allocations: 67.98 kB / 435.9 MB, free: 8.797 MB / 350.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.001716/0.5179, allocations: 0.7082 MB / 436.6 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004625/0.5184, allocations: 173.8 kB / 436.8 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004044/0.5224, allocations: 2.194 MB / 439 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.244e-05/0.5225, allocations: 19.94 kB / 439 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.158e-06/0.5225, allocations: 4 kB / 439 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-05/0.5225, allocations: 3.984 kB / 439 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008773/0.5313, allocations: 4.804 MB / 443.8 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.438e-06/0.5313, allocations: 7.938 kB / 443.8 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009826/0.5323, allocations: 227.6 kB / 444 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001231/0.5335, allocations: 456.5 kB / 444.5 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001104/0.5337, allocations: 35.98 kB / 444.5 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00838/0.5421, allocations: 8.68 MB / 453.2 MB, free: 6.773 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.5421, allocations: 4.094 kB / 453.2 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006357/0.5485, allocations: 3.226 MB / 456.4 MB, free: 3.453 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001485/0.55, allocations: 398.8 kB / 456.8 MB, free: 3.043 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002607/0.5503, allocations: 32 kB / 456.8 MB, free: 3.012 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/0.5513, allocations: 83.89 kB / 456.9 MB, free: 2.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000307/0.5516, allocations: 100.8 kB / 457 MB, free: 2.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.54e-05/0.5517, allocations: 39.98 kB / 457.1 MB, free: 2.793 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001774/0.5535, allocations: 1.074 MB / 458.1 MB, free: 1.723 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5535, allocations: 0 / 458.1 MB, free: 1.723 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002134/0.5556, allocations: 484 kB / 458.6 MB, free: 1.25 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.0004844/0.5561, allocations: 199.1 kB / 458.8 MB, free: 1.047 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005518/0.5617, allocations: 2.794 MB / 461.6 MB, free: 14.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.585e-06/0.5617, allocations: 0 / 461.6 MB, free: 14.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002479/0.5642, allocations: 1.47 MB / 463.1 MB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003/0.5672, allocations: 489.3 kB / 463.5 MB, free: 12.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009727/0.5769, allocations: 5.699 MB / 469.2 MB, free: 6.434 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001644/0.5786, allocations: 1.871 MB / 471.1 MB, free: 4.531 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001637/0.5803, allocations: 390.9 kB / 471.5 MB, free: 4.145 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003984/0.5807, allocations: 123.4 kB / 471.6 MB, free: 4.023 MB / 382.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5807, allocations: 0 / 471.6 MB, free: 4.023 MB / 382.1 MB Notification: Performance of Templates: time 0.05312/0.6338, allocations: 26.39 MB / 498 MB, free: 9.914 MB / 414.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