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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0009249/0.000925, allocations: 97.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001073/0.001073, allocations: 206.3 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.8 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001927/0.0001927, allocations: 4 kB / 307.7 MB, free: 0.8242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08832/0.08853, allocations: 51.54 MB / 359.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.009192/0.09777, allocations: 9.07 MB / 368.4 MB, free: 4.176 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004964/0.1028, allocations: 3.1 MB / 371.5 MB, free: 1.062 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000666/0.1035, allocations: 47.75 kB / 371.5 MB, free: 1.016 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0012/0.1047, allocations: 0.602 MB / 372.1 MB, free: 420 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1674/0.2721, allocations: 0.677 MB / 372.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001708/0.2738, allocations: 344.7 kB / 373.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005313/0.2791, allocations: 2.865 MB / 376 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002808/0.282, allocations: 1.945 MB / 377.9 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001987/0.284, allocations: 0.8946 MB / 378.8 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001969/0.2859, allocations: 1.263 MB / 380.1 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002926/0.2863, allocations: 132.6 kB / 380.2 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007057/0.287, allocations: 252.2 kB / 380.5 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007008/0.2877, allocations: 0.6832 MB / 381.1 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001273/0.289, allocations: 1.197 MB / 382.3 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003666/0.2926, allocations: 3.88 MB / 386.2 MB, free: 7.684 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.2926, allocations: 0 / 386.2 MB, free: 7.684 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2927, allocations: 1.062 kB / 386.2 MB, free: 7.684 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.973e-05/0.2927, allocations: 0 / 386.2 MB, free: 7.684 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.004351/0.2971, allocations: 2.48 MB / 388.7 MB, free: 5.992 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.2971, allocations: 9.938 kB / 388.7 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007427/0.2979, allocations: 300 kB / 389 MB, free: 5.844 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002037/0.2999, allocations: 1.493 MB / 390.5 MB, free: 4.773 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001701/0.3001, allocations: 166.8 kB / 390.7 MB, free: 4.699 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003254/0.3004, allocations: 218.5 kB / 390.9 MB, free: 4.621 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00474/0.3052, allocations: 2.808 MB / 393.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.806e-05/0.3053, allocations: 17.41 kB / 393.7 MB, free: 2.934 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001984/0.3055, allocations: 85.59 kB / 393.8 MB, free: 2.871 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001156/0.3056, allocations: 104.2 kB / 393.9 MB, free: 2.852 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0037/0.3093, allocations: 2.373 MB / 396.3 MB, free: 1.645 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01205/0.3214, allocations: 8.648 MB / 404.9 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00235/0.3237, allocations: 1.723 MB / 406.6 MB, free: 8.301 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00171/0.3255, allocations: 0.9813 MB / 407.6 MB, free: 7.324 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002798/0.3257, allocations: 201.5 kB / 407.8 MB, free: 7.09 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.3258, allocations: 43.56 kB / 407.8 MB, free: 7.039 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.735e-06/0.3258, allocations: 0 / 407.8 MB, free: 7.039 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01333/0.3391, allocations: 6.357 MB / 414.2 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.309e-05/0.3392, allocations: 64.41 kB / 414.3 MB, free: 456 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002121/0.3413, allocations: 1.437 MB / 415.7 MB, free: 15 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.566e-05/0.3414, allocations: 49.7 kB / 415.7 MB, free: 14.94 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007557/0.3422, allocations: 1.045 MB / 416.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003317/0.3425, allocations: 412.1 kB / 417.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001714/0.3427, allocations: 113.6 kB / 417.3 MB, free: 13.37 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002283/0.343, allocations: 365.2 kB / 417.7 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/0.3441, allocations: 0.7034 MB / 418.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001425/0.3456, allocations: 1.081 MB / 419.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002647/0.3482, allocations: 1.882 MB / 421.3 MB, free: 9.023 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/0.3483, allocations: 4 kB / 421.3 MB, free: 9.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004009/0.3523, allocations: 2.437 MB / 423.8 MB, free: 6.543 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.3523, allocations: 16.06 kB / 423.8 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.581e-05/0.3523, allocations: 12 kB / 423.8 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009597/0.3533, allocations: 412.5 kB / 424.2 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/0.3545, allocations: 339.3 kB / 424.5 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006496/0.361, allocations: 6.467 MB / 431 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001262/0.3623, allocations: 111.8 kB / 431.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/0.3624, allocations: 56 kB / 431.2 MB, free: 14.75 MB / 350.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.001352/0.3638, allocations: 0.6924 MB / 431.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002583/0.364, allocations: 158 kB / 432 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003706/0.3678, allocations: 2.164 MB / 434.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.351e-05/0.3678, allocations: 12 kB / 434.2 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.3678, allocations: 7.938 kB / 434.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.3678, allocations: 3.984 kB / 434.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007716/0.3755, allocations: 4.62 MB / 438.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.3756, allocations: 4 kB / 438.8 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009309/0.3765, allocations: 219.7 kB / 439 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00112/0.3776, allocations: 444.3 kB / 439.5 MB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.208e-05/0.3777, allocations: 39.92 kB / 439.5 MB, free: 6.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007691/0.3854, allocations: 7.919 MB / 447.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.3855, allocations: 7.938 kB / 447.4 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005017/0.3905, allocations: 3.132 MB / 450.6 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008427/0.3913, allocations: 383 kB / 450.9 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002066/0.3916, allocations: 35.92 kB / 451 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009016/0.3925, allocations: 91.91 kB / 451.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00024/0.3927, allocations: 88.91 kB / 451.2 MB, free: 9.957 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.838e-05/0.3928, allocations: 47.86 kB / 451.2 MB, free: 9.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001553/0.3944, allocations: 0.9888 MB / 452.2 MB, free: 8.922 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3944, allocations: 0 / 452.2 MB, free: 8.922 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001797/0.3962, allocations: 460 kB / 452.6 MB, free: 8.473 MB / 366.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.0004492/0.3966, allocations: 203 kB / 452.8 MB, free: 8.262 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003621/0.4003, allocations: 2.232 MB / 455.1 MB, free: 5.969 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.748e-06/0.4003, allocations: 0 / 455.1 MB, free: 5.969 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00226/0.4026, allocations: 1.461 MB / 456.5 MB, free: 4.461 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002682/0.4053, allocations: 406.1 kB / 456.9 MB, free: 4.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009775/0.415, allocations: 5.549 MB / 462.5 MB, free: 14.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001844/0.4169, allocations: 1.803 MB / 464.3 MB, free: 12.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001333/0.4183, allocations: 369.6 kB / 464.6 MB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003481/0.4186, allocations: 111.4 kB / 464.7 MB, free: 12.14 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4186, allocations: 4 kB / 464.8 MB, free: 12.14 MB / 382.1 MB Notification: Performance of Templates: time 0.0417/0.4603, allocations: 23.11 MB / 487.9 MB, free: 5.262 MB / 398.1 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/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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches