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.001074/0.001074, allocations: 89.83 kB / 16.65 MB, free: 6.59 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.001413/0.001413, allocations: 182.8 kB / 17.56 MB, free: 6.203 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.34/1.34, allocations: 223.3 MB / 241.6 MB, free: 124 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002466/0.0002467, allocations: 4.688 kB / 301.4 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08785/0.08811, allocations: 50.41 MB / 351.8 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.009492/0.09765, allocations: 9.041 MB / 360.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005554/0.1032, allocations: 3.038 MB / 363.9 MB, free: 7.555 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009334/0.1042, allocations: 51.75 kB / 364 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001447/0.1057, allocations: 0.5824 MB / 364.5 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001892/0.1076, allocations: 0.6877 MB / 365.2 MB, free: 6.227 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007322/0.1083, allocations: 351.6 kB / 365.6 MB, free: 5.883 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002746/0.1111, allocations: 2.856 MB / 368.4 MB, free: 3.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002285/0.1134, allocations: 1.953 MB / 370.4 MB, free: 1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001358/0.1147, allocations: 0.8906 MB / 371.3 MB, free: 108 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.162/0.2768, allocations: 1.249 MB / 372.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004573/0.2773, allocations: 132.7 kB / 372.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007354/0.278, allocations: 241 kB / 372.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007035/0.2787, allocations: 0.6757 MB / 373.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001201/0.2799, allocations: 1.2 MB / 374.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003661/0.2836, allocations: 3.877 MB / 378.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.2836, allocations: 1.938 kB / 378.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.2836, allocations: 0 / 378.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.618e-05/0.2837, allocations: 0.6875 kB / 378.6 MB, free: 10.97 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.004772/0.2885, allocations: 2.47 MB / 381.1 MB, free: 9.801 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.2885, allocations: 13.28 kB / 381.1 MB, free: 9.797 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007369/0.2893, allocations: 286.2 kB / 381.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00218/0.2915, allocations: 1.491 MB / 382.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001488/0.2916, allocations: 169 kB / 383.1 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003468/0.292, allocations: 216.4 kB / 383.3 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004894/0.2969, allocations: 2.811 MB / 386.1 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.067e-05/0.297, allocations: 10.12 kB / 386.1 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002093/0.2972, allocations: 84.64 kB / 386.2 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001134/0.2973, allocations: 109.2 kB / 386.3 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004458/0.3018, allocations: 2.373 MB / 388.7 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01211/0.3139, allocations: 8.642 MB / 397.3 MB, free: 1.668 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001874/0.3158, allocations: 1.714 MB / 399 MB, free: 480 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001444/0.3173, allocations: 0.981 MB / 400 MB, free: 32 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002799/0.3176, allocations: 208.5 kB / 400.2 MB, free: 15.83 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.57e-05/0.3176, allocations: 45.06 kB / 400.2 MB, free: 15.78 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 4.448e-06/0.3176, allocations: 0 / 400.2 MB, free: 15.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01374/0.3314, allocations: 6.345 MB / 406.6 MB, free: 10.41 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.779e-05/0.3314, allocations: 60.41 kB / 406.7 MB, free: 10.34 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002304/0.3338, allocations: 1.444 MB / 408.1 MB, free: 8.883 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001851/0.334, allocations: 45.7 kB / 408.1 MB, free: 8.832 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007679/0.3347, allocations: 1.038 MB / 409.2 MB, free: 7.785 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003754/0.3351, allocations: 410.9 kB / 409.6 MB, free: 7.387 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001778/0.3353, allocations: 117.7 kB / 409.7 MB, free: 7.266 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.3355, allocations: 353.9 kB / 410 MB, free: 6.914 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001252/0.3367, allocations: 0.7066 MB / 410.7 MB, free: 6.207 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001417/0.3381, allocations: 1.079 MB / 411.8 MB, free: 4.969 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002682/0.3408, allocations: 1.885 MB / 413.7 MB, free: 2.965 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.3409, allocations: 0 / 413.7 MB, free: 2.965 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004311/0.3452, allocations: 2.443 MB / 416.2 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.3452, allocations: 15.94 kB / 416.2 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.896e-05/0.3453, allocations: 12 kB / 416.2 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009803/0.3462, allocations: 415.2 kB / 416.6 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/0.3475, allocations: 334.2 kB / 416.9 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006506/0.354, allocations: 6.463 MB / 423.4 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001493/0.3555, allocations: 107.8 kB / 423.5 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001332/0.3557, allocations: 59.98 kB / 423.5 MB, free: 8.82 MB / 334.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.001367/0.3571, allocations: 0.6886 MB / 424.2 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003771/0.3574, allocations: 154.1 kB / 424.4 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004063/0.3615, allocations: 2.161 MB / 426.5 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.216e-05/0.3615, allocations: 14.81 kB / 426.6 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.306e-05/0.3616, allocations: 4 kB / 426.6 MB, free: 5.777 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.3616, allocations: 7.969 kB / 426.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008655/0.3702, allocations: 4.611 MB / 431.2 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.3703, allocations: 3.938 kB / 431.2 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009571/0.3713, allocations: 223.2 kB / 431.4 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001228/0.3725, allocations: 457.5 kB / 431.8 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000111/0.3726, allocations: 31.98 kB / 431.9 MB, free: 404 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00827/0.3809, allocations: 7.929 MB / 439.8 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/0.381, allocations: 4 kB / 439.8 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005877/0.3868, allocations: 3.132 MB / 442.9 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001051/0.3879, allocations: 387 kB / 443.3 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004421/0.3884, allocations: 31.94 kB / 443.4 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001154/0.3896, allocations: 95.84 kB / 443.4 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002486/0.3898, allocations: 91.69 kB / 443.5 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.3899, allocations: 47.91 kB / 443.6 MB, free: 4.121 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001877/0.3918, allocations: 0.9847 MB / 444.6 MB, free: 3.137 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3918, allocations: 0 / 444.6 MB, free: 3.137 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002013/0.3938, allocations: 456 kB / 445 MB, free: 2.691 MB / 350.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.0004343/0.3943, allocations: 202.8 kB / 445.2 MB, free: 2.492 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003896/0.3982, allocations: 2.236 MB / 447.4 MB, free: 244 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.3982, allocations: 0 / 447.4 MB, free: 244 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002496/0.4007, allocations: 1.456 MB / 448.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003069/0.4038, allocations: 398.1 kB / 449.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008804/0.4126, allocations: 5.55 MB / 454.8 MB, free: 8.762 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001797/0.4145, allocations: 1.803 MB / 456.6 MB, free: 6.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001351/0.4158, allocations: 369.6 kB / 457 MB, free: 6.562 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004448/0.4163, allocations: 107.4 kB / 457.1 MB, free: 6.457 MB / 366.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4163, allocations: 0 / 457.1 MB, free: 6.457 MB / 366.1 MB Notification: Performance of Templates: time 0.04372/0.46, allocations: 23.03 MB / 480.1 MB, free: 15.71 MB / 398.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