Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.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 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.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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 108 kB / 17.06 MB, free: 6.012 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.001081/0.001081, allocations: 192 kB / 18 MB, free: 5.098 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.339/1.339, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001058/0.001058, allocations: 47.94 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2803, allocations: 49.44 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01549/0.2959, allocations: 9.632 MB / 410.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007787/0.3037, allocations: 3.093 MB / 413.5 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00152/0.3052, allocations: 59.75 kB / 413.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002264/0.3076, allocations: 0.7063 MB / 414.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003313/0.3109, allocations: 0.8038 MB / 415 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001276/0.3122, allocations: 387.4 kB / 415.4 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003908/0.3161, allocations: 2.545 MB / 418 MB, free: 7.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00392/0.3201, allocations: 2.326 MB / 420.3 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002274/0.3223, allocations: 1.191 MB / 421.5 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002941/0.3253, allocations: 1.491 MB / 423 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006736/0.326, allocations: 316 kB / 423.3 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001088/0.3271, allocations: 427.8 kB / 423.7 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001204/0.3283, allocations: 0.896 MB / 424.6 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002487/0.3308, allocations: 1.419 MB / 426 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00479/0.3356, allocations: 4.147 MB / 430.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3357, allocations: 0 / 430.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.33e-06/0.3357, allocations: 0 / 430.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.949e-05/0.3358, allocations: 3.938 kB / 430.2 MB, free: 11.3 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005398/0.3412, allocations: 2.904 MB / 433.1 MB, free: 8.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.3412, allocations: 8.031 kB / 433.1 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007323/0.342, allocations: 289.7 kB / 433.3 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002294/0.3443, allocations: 1.534 MB / 434.9 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/0.3444, allocations: 164.3 kB / 435 MB, free: 6.281 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003051/0.3447, allocations: 208 kB / 435.2 MB, free: 6.078 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004393/0.3491, allocations: 2.796 MB / 438 MB, free: 3.195 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.718e-05/0.3492, allocations: 7.906 kB / 438.1 MB, free: 3.188 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002001/0.3494, allocations: 91.92 kB / 438.1 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001026/0.3495, allocations: 112.2 kB / 438.2 MB, free: 2.984 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003837/0.3533, allocations: 2.347 MB / 440.6 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01232/0.3657, allocations: 8.491 MB / 449.1 MB, free: 7.883 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002358/0.3681, allocations: 1.707 MB / 450.8 MB, free: 6.051 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001689/0.3698, allocations: 0.9674 MB / 451.8 MB, free: 5.082 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000292/0.3701, allocations: 199.2 kB / 452 MB, free: 4.852 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.529e-05/0.3701, allocations: 51.44 kB / 452 MB, free: 4.793 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 2.465e-06/0.3701, allocations: 7.938 kB / 452 MB, free: 4.785 MB / 366.1 MB Notification: Performance of matching and sorting (n=116): time 0.01302/0.3831, allocations: 6.226 MB / 458.2 MB, free: 14.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.206e-05/0.3832, allocations: 68.33 kB / 458.3 MB, free: 14.31 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001923/0.3851, allocations: 1.441 MB / 459.7 MB, free: 12.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.763e-05/0.3852, allocations: 41.7 kB / 459.8 MB, free: 12.81 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007139/0.3859, allocations: 1.041 MB / 460.8 MB, free: 11.76 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002834/0.3862, allocations: 414.1 kB / 461.2 MB, free: 11.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003973/0.3866, allocations: 251.5 kB / 461.5 MB, free: 11.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.3868, allocations: 361.9 kB / 461.8 MB, free: 10.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001114/0.3879, allocations: 0.6871 MB / 462.5 MB, free: 10.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00136/0.3893, allocations: 1.073 MB / 463.6 MB, free: 8.816 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002577/0.3919, allocations: 1.864 MB / 465.5 MB, free: 6.793 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.3919, allocations: 4 kB / 465.5 MB, free: 6.789 MB / 382.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003851/0.3957, allocations: 2.417 MB / 467.9 MB, free: 4.332 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.3958, allocations: 8 kB / 467.9 MB, free: 4.324 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.842e-05/0.3958, allocations: 12.25 kB / 467.9 MB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009418/0.3968, allocations: 421.2 kB / 468.3 MB, free: 3.891 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001225/0.398, allocations: 335.5 kB / 468.6 MB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00682/0.4048, allocations: 7.037 MB / 475.7 MB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/0.406, allocations: 103.8 kB / 475.8 MB, free: 12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-05/0.4061, allocations: 59.94 kB / 475.8 MB, free: 11.95 MB / 398.1 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.001143/0.4072, allocations: 0.6924 MB / 476.5 MB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002499/0.4075, allocations: 154.1 kB / 476.7 MB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003657/0.4111, allocations: 2.123 MB / 478.8 MB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.4112, allocations: 12 kB / 478.8 MB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.4112, allocations: 4 kB / 478.8 MB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.642e-05/0.4112, allocations: 7.922 kB / 478.8 MB, free: 8.895 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007181/0.4184, allocations: 4.567 MB / 483.4 MB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.4184, allocations: 8.031 kB / 483.4 MB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009038/0.4193, allocations: 211.7 kB / 483.6 MB, free: 3.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001128/0.4205, allocations: 454.9 kB / 484 MB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.636e-05/0.4206, allocations: 31.98 kB / 484.1 MB, free: 3.496 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008271/0.4288, allocations: 8.616 MB / 492.7 MB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.644e-06/0.4289, allocations: 11.88 kB / 492.7 MB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004883/0.4338, allocations: 3.088 MB / 495.8 MB, free: 7.125 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007499/0.4345, allocations: 390.9 kB / 496.2 MB, free: 6.723 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000358/0.4349, allocations: 31.98 kB / 496.2 MB, free: 6.691 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.436, allocations: 83.91 kB / 496.3 MB, free: 6.609 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000246/0.4363, allocations: 96.75 kB / 496.4 MB, free: 6.516 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.705e-05/0.4363, allocations: 35.98 kB / 496.4 MB, free: 6.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001934/0.4383, allocations: 0.9886 MB / 497.4 MB, free: 5.492 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4383, allocations: 0 / 497.4 MB, free: 5.492 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001823/0.4401, allocations: 468.1 kB / 497.9 MB, free: 5.035 MB / 414.1 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.0004415/0.4406, allocations: 189.5 kB / 498.1 MB, free: 4.844 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003948/0.4445, allocations: 2.232 MB / 0.4886 GB, free: 2.555 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/0.4446, allocations: 4.812 kB / 0.4886 GB, free: 2.551 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002369/0.4469, allocations: 1.449 MB / 0.49 GB, free: 1.047 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002111/0.4491, allocations: 412.5 kB / 0.4904 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008749/0.4578, allocations: 4.443 MB / 0.4947 GB, free: 12.14 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001918/0.4598, allocations: 1.803 MB / 0.4965 GB, free: 10.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001157/0.4609, allocations: 365.6 kB / 0.4968 GB, free: 9.941 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000422/0.4614, allocations: 119.4 kB / 0.4969 GB, free: 9.824 MB / 430.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4614, allocations: 0 / 0.4969 GB, free: 9.824 MB / 430.1 MB Notification: Performance of Templates: time 0.05557/0.5169, allocations: 24.79 MB / 0.5211 GB, free: 1.262 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches