Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001666/0.001666, 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.273/1.273, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009837/0.0009837, allocations: 113.2 kB / 296.7 MB, free: 6.457 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008813/0.0008814, allocations: 55.91 kB / 356.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2003/0.2012, allocations: 50.45 MB / 407.1 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.007504/0.2087, allocations: 9.581 MB / 416.6 MB, free: 18.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004728/0.2135, allocations: 3.124 MB / 419.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001123/0.2146, allocations: 55.75 kB / 419.8 MB, free: 15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001256/0.2159, allocations: 0.5942 MB / 420.4 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001539/0.2175, allocations: 0.6916 MB / 421.1 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006014/0.2181, allocations: 351.6 kB / 421.4 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001816/0.2199, allocations: 2.895 MB / 424.3 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001527/0.2214, allocations: 1.969 MB / 426.3 MB, free: 8.422 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001183/0.2226, allocations: 1.047 MB / 427.4 MB, free: 7.371 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001153/0.2238, allocations: 1.436 MB / 428.8 MB, free: 5.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002532/0.2241, allocations: 200 kB / 429 MB, free: 5.734 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005377/0.2246, allocations: 311.8 kB / 429.3 MB, free: 5.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004945/0.2251, allocations: 0.7749 MB / 430.1 MB, free: 4.652 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008633/0.226, allocations: 1.29 MB / 431.4 MB, free: 3.355 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002248/0.2282, allocations: 4.011 MB / 435.4 MB, free: 15.33 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.2283, allocations: 0 / 435.4 MB, free: 15.33 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.2283, allocations: 0 / 435.4 MB, free: 15.33 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.495e-05/0.2283, allocations: 0 / 435.4 MB, free: 15.33 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005215/0.2335, allocations: 2.904 MB / 438.3 MB, free: 12.36 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.2336, allocations: 12.03 kB / 438.3 MB, free: 12.35 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006982/0.2343, allocations: 293.7 kB / 438.6 MB, free: 12.06 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002449/0.2368, allocations: 1.491 MB / 440.1 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001357/0.2369, allocations: 172.5 kB / 440.2 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002692/0.2372, allocations: 211.9 kB / 440.4 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004208/0.2414, allocations: 2.799 MB / 443.2 MB, free: 7.246 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.739e-05/0.2415, allocations: 3.906 kB / 443.2 MB, free: 7.242 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000184/0.2417, allocations: 88 kB / 443.3 MB, free: 7.156 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001069/0.2418, allocations: 104.2 kB / 443.4 MB, free: 7.051 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003723/0.2455, allocations: 2.351 MB / 445.8 MB, free: 4.684 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01249/0.258, allocations: 8.589 MB / 454.4 MB, free: 11.84 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002288/0.2603, allocations: 1.709 MB / 456.1 MB, free: 10.02 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001663/0.262, allocations: 0.9684 MB / 457 MB, free: 9.047 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000275/0.2623, allocations: 203.2 kB / 457.2 MB, free: 8.809 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.895e-05/0.2624, allocations: 51.5 kB / 457.3 MB, free: 8.75 MB / 330.7 MB Notification: Performance of pre-optimization done (n=101): time 3.116e-06/0.2624, allocations: 4 kB / 457.3 MB, free: 8.746 MB / 330.7 MB Notification: Performance of matching and sorting (n=116): time 0.01282/0.2752, allocations: 6.231 MB / 463.5 MB, free: 2.348 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.924e-05/0.2753, allocations: 64.41 kB / 463.6 MB, free: 2.27 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001887/0.2772, allocations: 1.437 MB / 465 MB, free: 0.8203 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.052e-05/0.2773, allocations: 57.64 kB / 465.1 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006567/0.2779, allocations: 1.045 MB / 466.1 MB, free: 15.7 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002885/0.2782, allocations: 406.2 kB / 466.5 MB, free: 15.3 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003828/0.2786, allocations: 247.5 kB / 466.8 MB, free: 15.05 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.2788, allocations: 361.9 kB / 467.1 MB, free: 14.69 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001072/0.2798, allocations: 0.6871 MB / 467.8 MB, free: 14 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001287/0.2811, allocations: 1.073 MB / 468.9 MB, free: 12.77 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002451/0.2836, allocations: 1.868 MB / 470.8 MB, free: 10.75 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.2836, allocations: 4 kB / 470.8 MB, free: 10.74 MB / 346.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003822/0.2874, allocations: 2.417 MB / 473.2 MB, free: 8.285 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.2875, allocations: 10.81 kB / 473.2 MB, free: 8.277 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.2875, allocations: 12 kB / 473.2 MB, free: 8.266 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000932/0.2884, allocations: 423.2 kB / 473.6 MB, free: 7.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.2896, allocations: 327.5 kB / 473.9 MB, free: 7.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006109/0.2958, allocations: 6.469 MB / 480.4 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001214/0.297, allocations: 91.89 kB / 480.5 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001178/0.2971, allocations: 67.92 kB / 480.6 MB, free: 496 kB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * 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,11,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.001107/0.2982, allocations: 0.6902 MB / 481.2 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003379/0.2986, allocations: 162 kB / 481.4 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003658/0.3022, allocations: 2.13 MB / 483.5 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.3023, allocations: 12 kB / 483.5 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.3023, allocations: 4 kB / 483.5 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/0.3023, allocations: 11.91 kB / 483.6 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007415/0.3097, allocations: 4.572 MB / 488.1 MB, free: 8.727 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.3097, allocations: 4 kB / 488.1 MB, free: 8.723 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008715/0.3106, allocations: 219.6 kB / 488.3 MB, free: 8.508 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001077/0.3117, allocations: 455.3 kB / 488.8 MB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.98e-05/0.3118, allocations: 31.98 kB / 488.8 MB, free: 8.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00734/0.3192, allocations: 7.921 MB / 496.7 MB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.3192, allocations: 4 kB / 496.7 MB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1885/0.5077, allocations: 23.64 MB / 0.5082 GB, free: 84.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006148/0.5084, allocations: 385.8 kB / 0.5086 GB, free: 84.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001706/0.5086, allocations: 31.42 kB / 0.5086 GB, free: 84.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007982/0.5094, allocations: 77.28 kB / 0.5087 GB, free: 84.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002404/0.5096, allocations: 93.66 kB / 0.5087 GB, free: 84.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.623e-05/0.5097, allocations: 39.06 kB / 0.5088 GB, free: 84.08 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001073/0.5108, allocations: 0.9868 MB / 0.5098 GB, free: 83.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5108, allocations: 0 / 0.5098 GB, free: 83.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002118/0.5129, allocations: 0.6244 MB / 0.5104 GB, free: 83.64 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (102): * Single equations (assignments): 98 * 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,11,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.0004296/0.5134, allocations: 196.7 kB / 0.5105 GB, free: 83.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003102/0.5165, allocations: 2.221 MB / 0.5127 GB, free: 82.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.5165, allocations: 7.938 kB / 0.5127 GB, free: 82.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001837/0.5183, allocations: 1.432 MB / 0.5141 GB, free: 81.78 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001822/0.5202, allocations: 399.2 kB / 0.5145 GB, free: 81.67 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007413/0.5276, allocations: 6.878 MB / 0.5212 GB, free: 77.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001103/0.5287, allocations: 1.863 MB / 0.523 GB, free: 76.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001111/0.5299, allocations: 375.3 kB / 0.5234 GB, free: 75.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003242/0.5302, allocations: 127.1 kB / 0.5235 GB, free: 75.82 MB / 378.7 MB Notification: Performance of SimCode: time 9.82e-07/0.5302, allocations: 0 / 0.5235 GB, free: 75.82 MB / 378.7 MB Notification: Performance of Templates: time 0.03488/0.5651, allocations: 28.67 MB / 0.5515 GB, free: 47.88 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches