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.00112/0.00112, allocations: 111.1 kB / 16.51 MB, free: 6.707 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.001118/0.001118, allocations: 191.3 kB / 17.43 MB, free: 6.066 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.308/1.308, allocations: 222.9 MB / 241.1 MB, free: 15.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009297/0.0009297, allocations: 55.53 kB / 300 MB, free: 6.27 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09216/0.0931, allocations: 49.43 MB / 349.4 MB, free: 4.828 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01113/0.1043, allocations: 9.567 MB / 359 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006919/0.1113, allocations: 3.073 MB / 362 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001933/0.1132, allocations: 51.75 kB / 362.1 MB, free: 8.078 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002028/0.1153, allocations: 0.5825 MB / 362.7 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00262/0.118, allocations: 0.6916 MB / 363.4 MB, free: 6.797 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008796/0.1189, allocations: 343.7 kB / 363.7 MB, free: 6.461 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003226/0.1221, allocations: 2.857 MB / 366.6 MB, free: 3.594 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002395/0.1245, allocations: 1.973 MB / 368.5 MB, free: 1.555 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001742/0.1263, allocations: 1.035 MB / 369.6 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1629/0.2892, allocations: 1.43 MB / 371 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006236/0.2898, allocations: 196.2 kB / 371.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009431/0.2908, allocations: 313.9 kB / 371.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000797/0.2916, allocations: 0.768 MB / 372.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001502/0.2931, allocations: 1.29 MB / 373.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004218/0.2974, allocations: 4.011 MB / 377.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2974, allocations: 0 / 377.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2974, allocations: 1.5 kB / 377.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.622e-05/0.2975, allocations: 1.594 kB / 377.6 MB, free: 12.14 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.005533/0.303, allocations: 2.901 MB / 380.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.3031, allocations: 13.59 kB / 380.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007153/0.3038, allocations: 288.5 kB / 380.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002344/0.3062, allocations: 1.495 MB / 382.3 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000139/0.3063, allocations: 164.3 kB / 382.4 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000305/0.3066, allocations: 213.2 kB / 382.6 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004566/0.3112, allocations: 2.793 MB / 385.4 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.4e-05/0.3113, allocations: 11.47 kB / 385.4 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001986/0.3115, allocations: 84.41 kB / 385.5 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001054/0.3116, allocations: 109.4 kB / 385.6 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004094/0.3157, allocations: 2.35 MB / 388 MB, free: 7.375 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01162/0.3273, allocations: 8.604 MB / 396.6 MB, free: 1.379 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001907/0.3293, allocations: 1.692 MB / 398.3 MB, free: 192 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001495/0.3308, allocations: 0.9804 MB / 399.2 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002709/0.3311, allocations: 197.1 kB / 399.4 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.653e-05/0.3311, allocations: 50.02 kB / 399.5 MB, free: 15.49 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.825e-06/0.3311, allocations: 0 / 399.5 MB, free: 15.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01262/0.3437, allocations: 6.224 MB / 405.7 MB, free: 10.57 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.429e-05/0.3438, allocations: 64.41 kB / 405.8 MB, free: 10.49 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00219/0.346, allocations: 1.441 MB / 407.2 MB, free: 9.039 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.839e-05/0.3461, allocations: 45.7 kB / 407.3 MB, free: 8.988 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000695/0.3468, allocations: 1.037 MB / 408.3 MB, free: 7.941 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003135/0.3472, allocations: 411.8 kB / 408.7 MB, free: 7.543 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004071/0.3476, allocations: 255.4 kB / 408.9 MB, free: 7.289 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.3477, allocations: 365.9 kB / 409.3 MB, free: 6.926 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/0.3489, allocations: 0.6793 MB / 410 MB, free: 6.246 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001371/0.3503, allocations: 1.078 MB / 411.1 MB, free: 5.016 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002536/0.3528, allocations: 1.867 MB / 412.9 MB, free: 3.031 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.3528, allocations: 4 kB / 412.9 MB, free: 3.027 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004027/0.3569, allocations: 2.42 MB / 415.4 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.608e-05/0.3569, allocations: 12.25 kB / 415.4 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.789e-05/0.3569, allocations: 12 kB / 415.4 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009567/0.3579, allocations: 413.3 kB / 415.8 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/0.3591, allocations: 338.7 kB / 416.1 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006238/0.3653, allocations: 6.449 MB / 422.6 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001316/0.3667, allocations: 99.94 kB / 422.7 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.3668, allocations: 55.98 kB / 422.7 MB, free: 8.93 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.001308/0.3681, allocations: 0.6926 MB / 423.4 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003466/0.3685, allocations: 162 kB / 423.6 MB, free: 8.086 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003635/0.3721, allocations: 2.137 MB / 425.7 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.3721, allocations: 12 kB / 425.7 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.3721, allocations: 4 kB / 425.7 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.941e-05/0.3722, allocations: 7.969 kB / 425.7 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007229/0.3794, allocations: 4.584 MB / 430.3 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/0.3794, allocations: 4 kB / 430.3 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008762/0.3803, allocations: 206.4 kB / 430.5 MB, free: 1.051 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001115/0.3814, allocations: 452.7 kB / 431 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.38e-05/0.3815, allocations: 35.98 kB / 431 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007386/0.3889, allocations: 7.925 MB / 438.9 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.3889, allocations: 14.33 kB / 438.9 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00476/0.3937, allocations: 3.09 MB / 442 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006677/0.3944, allocations: 375.7 kB / 442.4 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002162/0.3946, allocations: 39.92 kB / 442.4 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008435/0.3955, allocations: 83.91 kB / 442.5 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002006/0.3957, allocations: 87.97 kB / 442.6 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.14e-05/0.3958, allocations: 43.92 kB / 442.6 MB, free: 4.344 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001388/0.3972, allocations: 0.9853 MB / 443.6 MB, free: 3.359 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3972, allocations: 4 kB / 443.6 MB, free: 3.355 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001528/0.3987, allocations: 456 kB / 444.1 MB, free: 2.91 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.0003524/0.3991, allocations: 206.4 kB / 444.3 MB, free: 2.711 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003356/0.4024, allocations: 2.223 MB / 446.5 MB, free: 484 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.4024, allocations: 3.938 kB / 446.5 MB, free: 480 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002194/0.4046, allocations: 1.44 MB / 447.9 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001753/0.4064, allocations: 386.1 kB / 448.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006992/0.4134, allocations: 5.428 MB / 453.7 MB, free: 9.156 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001478/0.4149, allocations: 1.799 MB / 455.5 MB, free: 7.324 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001049/0.416, allocations: 361.6 kB / 455.9 MB, free: 6.965 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003389/0.4163, allocations: 115.4 kB / 456 MB, free: 6.852 MB / 366.1 MB Notification: Performance of SimCode: time 3.4e-07/0.4163, allocations: 0 / 456 MB, free: 6.852 MB / 366.1 MB Notification: Performance of Templates: time 0.03763/0.454, allocations: 23.39 MB / 479.4 MB, free: 15.74 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