Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SynchronousInductionMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smee.is.1.|smee.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smee.is.1.|smee.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 111.9 kB / 18.4 MB, free: 4.699 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.001372/0.001372, allocations: 190.3 kB / 19.33 MB, free: 3.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.215/1.215, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0011/0.0011, allocations: 51.92 kB / 329.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07474/0.07585, allocations: 46.61 MB / 375.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.1614/0.2373, allocations: 9.578 MB / 385.4 MB, free: 8.164 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004593/0.2419, allocations: 3.169 MB / 388.6 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000794/0.2427, allocations: 45.03 kB / 388.6 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001368/0.2441, allocations: 0.6712 MB / 389.3 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001836/0.246, allocations: 0.7594 MB / 390 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000782/0.2467, allocations: 392.9 kB / 390.4 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002348/0.2491, allocations: 2.564 MB / 393 MB, free: 3.988 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002173/0.2513, allocations: 2.292 MB / 395.3 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001501/0.2528, allocations: 1.187 MB / 396.5 MB, free: 2.441 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001617/0.2544, allocations: 1.493 MB / 398 MB, free: 1.742 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004372/0.2549, allocations: 317.6 kB / 398.3 MB, free: 1.742 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007347/0.2556, allocations: 421 kB / 398.7 MB, free: 1.711 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007163/0.2563, allocations: 0.8972 MB / 399.6 MB, free: 1.223 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001152/0.2575, allocations: 1.413 MB / 401 MB, free: 308 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003792/0.2613, allocations: 4.149 MB / 405.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2613, allocations: 0 / 405.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2613, allocations: 1.125 kB / 405.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.386e-05/0.2614, allocations: 4 kB / 405.1 MB, free: 14.05 MB / 334.1 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.005536/0.2669, allocations: 2.903 MB / 408.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.267, allocations: 10.62 kB / 408.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007044/0.2677, allocations: 289.1 kB / 408.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002249/0.27, allocations: 1.444 MB / 409.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001162/0.2701, allocations: 162.8 kB / 409.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000294/0.2704, allocations: 217.2 kB / 410.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004365/0.2748, allocations: 2.793 MB / 413 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.408e-05/0.2748, allocations: 2.719 kB / 413 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001929/0.275, allocations: 90.61 kB / 413 MB, free: 8.945 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.923e-05/0.2751, allocations: 102.3 kB / 413.1 MB, free: 8.926 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00367/0.2788, allocations: 2.354 MB / 415.5 MB, free: 7.715 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01196/0.2907, allocations: 8.484 MB / 424 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002291/0.2931, allocations: 1.704 MB / 425.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001622/0.2947, allocations: 0.9673 MB / 426.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00025/0.295, allocations: 195.2 kB / 426.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.295, allocations: 43.56 kB / 426.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=101): time 2.435e-06/0.295, allocations: 4.938 kB / 426.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=116): time 0.01184/0.3069, allocations: 6.11 MB / 433 MB, free: 5.656 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.838e-05/0.3069, allocations: 64.41 kB / 433.1 MB, free: 5.582 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001808/0.3087, allocations: 1.437 MB / 434.5 MB, free: 4.133 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.46e-05/0.3088, allocations: 45.7 kB / 434.5 MB, free: 4.082 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000667/0.3095, allocations: 1.037 MB / 435.6 MB, free: 3.031 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002925/0.3098, allocations: 410.1 kB / 436 MB, free: 2.625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003997/0.3102, allocations: 267.3 kB / 436.2 MB, free: 2.355 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.3104, allocations: 361.9 kB / 436.6 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001046/0.3114, allocations: 0.6832 MB / 437.3 MB, free: 1.312 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001272/0.3127, allocations: 1.074 MB / 438.4 MB, free: 76 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002414/0.3151, allocations: 1.86 MB / 440.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.3151, allocations: 4 kB / 440.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.00378/0.3189, allocations: 2.394 MB / 442.6 MB, free: 11.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.319, allocations: 12.23 kB / 442.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.759e-05/0.319, allocations: 16 kB / 442.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000878/0.3199, allocations: 419.1 kB / 443 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001107/0.321, allocations: 327.5 kB / 443.4 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006304/0.3273, allocations: 7.055 MB / 450.4 MB, free: 3.375 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/0.3286, allocations: 103.9 kB / 450.5 MB, free: 3.273 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.366e-05/0.3287, allocations: 52 kB / 450.6 MB, free: 3.223 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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.001114/0.3298, allocations: 0.6931 MB / 451.3 MB, free: 2.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002584/0.3301, allocations: 158 kB / 451.4 MB, free: 2.363 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003359/0.3335, allocations: 2.115 MB / 453.5 MB, free: 212 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.3335, allocations: 12 kB / 453.5 MB, free: 200 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.076e-06/0.3335, allocations: 8 kB / 453.6 MB, free: 192 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.3335, allocations: 7.969 kB / 453.6 MB, free: 184 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006655/0.3402, allocations: 4.561 MB / 458.1 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/0.3402, allocations: 4.469 kB / 458.1 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008334/0.341, allocations: 215.7 kB / 458.3 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001017/0.3421, allocations: 446.9 kB / 458.8 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.963e-05/0.3422, allocations: 31.98 kB / 458.8 MB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007305/0.3495, allocations: 8.636 MB / 467.4 MB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.3495, allocations: 7.938 kB / 467.5 MB, free: 1.578 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004694/0.3542, allocations: 3.091 MB / 470.5 MB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008223/0.355, allocations: 379 kB / 470.9 MB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000409/0.3555, allocations: 39.92 kB / 471 MB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/0.3565, allocations: 83.91 kB / 471 MB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002092/0.3567, allocations: 96.69 kB / 471.1 MB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.186e-05/0.3568, allocations: 39.98 kB / 471.2 MB, free: 13.74 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001621/0.3584, allocations: 0.9886 MB / 472.2 MB, free: 12.75 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3584, allocations: 0 / 472.2 MB, free: 12.75 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001762/0.3602, allocations: 464.1 kB / 472.6 MB, free: 12.3 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (103): * Single equations (assignments): 99 * 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.0003755/0.3606, allocations: 186.9 kB / 472.8 MB, free: 12.11 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003439/0.364, allocations: 2.231 MB / 475 MB, free: 9.82 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.364, allocations: 0 / 475 MB, free: 9.82 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002172/0.3662, allocations: 1.442 MB / 476.5 MB, free: 8.324 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00202/0.3683, allocations: 424.4 kB / 476.9 MB, free: 7.918 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007137/0.3754, allocations: 4.508 MB / 481.4 MB, free: 3.328 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001654/0.3771, allocations: 1.792 MB / 483.2 MB, free: 1.504 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004546/0.3775, allocations: 123.4 kB / 483.3 MB, free: 1.383 MB / 398.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3775, allocations: 0 / 483.3 MB, free: 1.383 MB / 398.1 MB Notification: Performance of Templates: time 0.07064/0.4482, allocations: 69.14 MB / 0.5395 GB, free: 12.08 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches