Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed.phi|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed.phi|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001475/0.001475, allocations: 112.6 kB / 17.07 MB, free: 5.977 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.001864/0.001865, allocations: 195 kB / 18 MB, free: 5.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.446/1.446, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009072/0.0009072, allocations: 47.92 kB / 351.3 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2555/0.2564, allocations: 49.43 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01267/0.2691, allocations: 11.48 MB / 412.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006902/0.276, allocations: 3.861 MB / 416.1 MB, free: 9.449 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001535/0.2776, allocations: 63.75 kB / 416.1 MB, free: 9.387 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002322/0.28, allocations: 0.8382 MB / 417 MB, free: 8.543 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003122/0.2831, allocations: 0.9394 MB / 417.9 MB, free: 7.598 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001211/0.2843, allocations: 0.4993 MB / 418.4 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003274/0.2876, allocations: 3.214 MB / 421.6 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002755/0.2904, allocations: 2.578 MB / 424.2 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001676/0.2921, allocations: 1.433 MB / 425.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00203/0.2941, allocations: 1.814 MB / 427.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004695/0.2946, allocations: 391.9 kB / 427.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001058/0.2957, allocations: 0.6129 MB / 428.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000968/0.2967, allocations: 1.071 MB / 429.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001596/0.2983, allocations: 1.723 MB / 431.2 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004654/0.3029, allocations: 5.06 MB / 436.3 MB, free: 5.094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3029, allocations: 0 / 436.3 MB, free: 5.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.303, allocations: 0 / 436.3 MB, free: 5.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.797e-05/0.303, allocations: 4 kB / 436.3 MB, free: 5.09 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.006644/0.3097, allocations: 3.551 MB / 439.9 MB, free: 1.469 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.3097, allocations: 8.031 kB / 439.9 MB, free: 1.461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001274/0.311, allocations: 438.7 kB / 440.3 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002834/0.3139, allocations: 1.842 MB / 442.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001312/0.314, allocations: 195.5 kB / 442.3 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003505/0.3144, allocations: 255.9 kB / 442.6 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005226/0.3196, allocations: 3.239 MB / 445.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.952e-05/0.3197, allocations: 11.95 kB / 445.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002254/0.3199, allocations: 100 kB / 445.9 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001362/0.3201, allocations: 116.9 kB / 446 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004574/0.3246, allocations: 2.705 MB / 448.7 MB, free: 8.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01474/0.3394, allocations: 10.29 MB / 459 MB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002216/0.3416, allocations: 1.772 MB / 460.8 MB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001665/0.3433, allocations: 1.057 MB / 461.9 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002735/0.3436, allocations: 199.2 kB / 462.1 MB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.1e-05/0.3437, allocations: 51.55 kB / 462.1 MB, free: 10.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=115): time 3.867e-06/0.3437, allocations: 0 / 462.1 MB, free: 10.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=134): time 0.01669/0.3604, allocations: 7.46 MB / 469.6 MB, free: 3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.98e-05/0.3604, allocations: 64.72 kB / 469.6 MB, free: 2.926 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002483/0.3629, allocations: 1.88 MB / 471.5 MB, free: 1.047 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.373e-05/0.363, allocations: 45.7 kB / 471.6 MB, free: 0.9961 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008183/0.3639, allocations: 1.276 MB / 472.8 MB, free: 15.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000342/0.3642, allocations: 491.8 kB / 473.3 MB, free: 15.22 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000461/0.3647, allocations: 295.5 kB / 473.6 MB, free: 14.92 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.961e-05/0.3648, allocations: 305.1 kB / 473.9 MB, free: 14.62 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001301/0.3661, allocations: 0.8159 MB / 474.7 MB, free: 13.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00161/0.3677, allocations: 1.315 MB / 476 MB, free: 12.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003037/0.3708, allocations: 2.258 MB / 478.3 MB, free: 9.801 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/0.3708, allocations: 4 kB / 478.3 MB, free: 9.797 MB / 398.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.004574/0.3754, allocations: 2.807 MB / 481.1 MB, free: 6.953 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.3754, allocations: 12 kB / 481.1 MB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.282e-05/0.3754, allocations: 16 kB / 481.1 MB, free: 6.926 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001002/0.3764, allocations: 430.4 kB / 481.5 MB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001411/0.3779, allocations: 395.3 kB / 481.9 MB, free: 6.109 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006206/0.3841, allocations: 5.799 MB / 487.7 MB, free: 20 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00178/0.3859, allocations: 131.9 kB / 487.9 MB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001358/0.386, allocations: 68 kB / 487.9 MB, free: 15.82 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (187): * Single equations (assignments): 182 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(3,12,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001548/0.3876, allocations: 0.7878 MB / 488.7 MB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004081/0.388, allocations: 210.7 kB / 488.9 MB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004104/0.3921, allocations: 2.395 MB / 491.3 MB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.078e-05/0.3921, allocations: 16 kB / 491.3 MB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/0.3922, allocations: 4 kB / 491.3 MB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.344e-05/0.3922, allocations: 7.969 kB / 491.3 MB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00827/0.4005, allocations: 5.261 MB / 496.6 MB, free: 6.941 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.899e-06/0.4005, allocations: 8 kB / 496.6 MB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.4015, allocations: 255.6 kB / 496.9 MB, free: 6.684 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001157/0.4027, allocations: 454.1 kB / 497.3 MB, free: 6.23 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001017/0.4028, allocations: 39.98 kB / 497.3 MB, free: 6.191 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007027/0.4098, allocations: 7.338 MB / 0.4929 GB, free: 14.43 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/0.4099, allocations: 7.938 kB / 0.4929 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005644/0.4155, allocations: 3.583 MB / 0.4964 GB, free: 10.74 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009009/0.4164, allocations: 459.6 kB / 0.4968 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002577/0.4167, allocations: 39.92 kB / 0.4968 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001082/0.4178, allocations: 96.03 kB / 0.4969 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002346/0.418, allocations: 116.7 kB / 0.497 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.029e-05/0.4181, allocations: 47.98 kB / 0.4971 GB, free: 9.977 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001782/0.4199, allocations: 1.287 MB / 0.4983 GB, free: 8.699 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4199, allocations: 0 / 0.4983 GB, free: 8.699 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001724/0.4216, allocations: 0.5469 MB / 0.4989 GB, free: 8.152 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * 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 (115): * Single equations (assignments): 110 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 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%), (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.0004164/0.4221, allocations: 226.9 kB / 0.4991 GB, free: 7.922 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004041/0.4261, allocations: 2.428 MB / 0.5015 GB, free: 5.445 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.4261, allocations: 4.125 kB / 0.5015 GB, free: 5.441 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002425/0.4286, allocations: 1.509 MB / 0.5029 GB, free: 3.895 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002064/0.4307, allocations: 443 kB / 0.5034 GB, free: 3.465 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007848/0.4385, allocations: 5.177 MB / 0.5084 GB, free: 14.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001561/0.4401, allocations: 2.002 MB / 0.5104 GB, free: 12.16 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001228/0.4413, allocations: 431.6 kB / 0.5108 GB, free: 11.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004081/0.4418, allocations: 131.4 kB / 0.5109 GB, free: 11.61 MB / 446.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4418, allocations: 0 / 0.5109 GB, free: 11.61 MB / 446.1 MB Notification: Performance of Templates: time 0.226/0.6677, allocations: 28.5 MB / 0.5387 GB, free: 132.3 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches