Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001611/0.001611, allocations: 107.6 kB / 21.18 MB, free: 0.6758 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00223/0.00223, allocations: 211.5 kB / 24.48 MB, free: 3.973 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.474/1.474, allocations: 230.6 MB / 258.3 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,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.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,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.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 47.92 kB / 379 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2349, allocations: 53.37 MB / 432.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01237/0.2473, allocations: 8.571 MB / 440.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006753/0.2541, allocations: 2.98 MB / 443.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00184/0.2559, allocations: 71.5 kB / 444 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002252/0.2582, allocations: 0.6673 MB / 444.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003085/0.2612, allocations: 0.8155 MB / 445.4 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001314/0.2626, allocations: 391.5 kB / 445.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003874/0.2664, allocations: 2.564 MB / 448.4 MB, free: 6.605 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002353/0.2688, allocations: 1.303 MB / 449.7 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001916/0.2707, allocations: 1.227 MB / 450.9 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00283/0.2735, allocations: 1.541 MB / 452.5 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007857/0.2743, allocations: 316 kB / 452.8 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001131/0.2754, allocations: 419.8 kB / 453.2 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001041/0.2765, allocations: 0.9193 MB / 454.1 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001442/0.2779, allocations: 1.144 MB / 455.2 MB, free: 15.67 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004627/0.2826, allocations: 4.204 MB / 459.4 MB, free: 11.45 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.2826, allocations: 0 / 459.4 MB, free: 11.45 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2826, allocations: 3.938 kB / 459.5 MB, free: 11.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.07e-05/0.2826, allocations: 0 / 459.5 MB, free: 11.45 MB / 366.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.006323/0.289, allocations: 2.904 MB / 462.4 MB, free: 8.496 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.289, allocations: 12.03 kB / 462.4 MB, free: 8.484 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008374/0.2898, allocations: 307.2 kB / 462.7 MB, free: 8.184 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003075/0.2929, allocations: 1.475 MB / 464.1 MB, free: 6.668 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001537/0.2931, allocations: 156.3 kB / 464.3 MB, free: 6.512 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003657/0.2934, allocations: 219.9 kB / 464.5 MB, free: 6.297 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004925/0.2984, allocations: 2.892 MB / 467.4 MB, free: 3.293 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.9e-05/0.2984, allocations: 11.98 kB / 467.4 MB, free: 3.281 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002037/0.2986, allocations: 88 kB / 467.5 MB, free: 3.195 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001286/0.2988, allocations: 104.2 kB / 467.6 MB, free: 3.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004169/0.3029, allocations: 2.339 MB / 469.9 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01321/0.3161, allocations: 7.381 MB / 477.3 MB, free: 9.117 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002376/0.3185, allocations: 1.187 MB / 478.5 MB, free: 7.922 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001756/0.3203, allocations: 0.8968 MB / 479.4 MB, free: 7.027 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002222/0.3205, allocations: 40.97 kB / 479.4 MB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.305e-05/0.3205, allocations: 47.56 kB / 479.5 MB, free: 6.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 3.206e-06/0.3205, allocations: 4 kB / 479.5 MB, free: 6.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01336/0.3339, allocations: 5.715 MB / 485.2 MB, free: 1.176 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.689e-05/0.334, allocations: 60.41 kB / 485.3 MB, free: 1.105 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001957/0.3359, allocations: 1.305 MB / 486.6 MB, free: 15.79 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.759e-05/0.336, allocations: 41.7 kB / 486.6 MB, free: 15.74 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000888/0.3369, allocations: 1.074 MB / 487.7 MB, free: 14.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003864/0.3373, allocations: 424.4 kB / 488.1 MB, free: 14.24 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004359/0.3377, allocations: 259.5 kB / 488.4 MB, free: 13.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.3379, allocations: 357.9 kB / 488.7 MB, free: 13.62 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001232/0.3391, allocations: 0.6909 MB / 489.4 MB, free: 12.93 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001449/0.3406, allocations: 1.073 MB / 490.5 MB, free: 11.7 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002768/0.3433, allocations: 1.875 MB / 492.4 MB, free: 9.664 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-06/0.3434, allocations: 4 kB / 492.4 MB, free: 9.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004162/0.3475, allocations: 2.323 MB / 494.7 MB, free: 7.316 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.3475, allocations: 12 kB / 494.7 MB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.3476, allocations: 12 kB / 494.7 MB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001045/0.3486, allocations: 413.6 kB / 495.1 MB, free: 6.879 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0013/0.3499, allocations: 335.4 kB / 495.4 MB, free: 6.551 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007646/0.3576, allocations: 6.62 MB / 0.4903 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001211/0.3588, allocations: 103.8 kB / 0.4904 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001205/0.3589, allocations: 59.94 kB / 0.4904 GB, free: 15.46 MB / 414.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.001291/0.3602, allocations: 0.6929 MB / 0.4911 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000358/0.3605, allocations: 151 kB / 0.4913 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003985/0.3645, allocations: 2.03 MB / 0.4932 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.3645, allocations: 16 kB / 0.4933 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.3645, allocations: 7.938 kB / 0.4933 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.301e-05/0.3646, allocations: 7.969 kB / 0.4933 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008192/0.3727, allocations: 3.938 MB / 0.4971 GB, free: 8.492 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.859e-06/0.3728, allocations: 4 kB / 0.4971 GB, free: 8.488 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009898/0.3737, allocations: 211.7 kB / 0.4973 GB, free: 8.281 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001264/0.375, allocations: 454.5 kB / 0.4978 GB, free: 7.828 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001029/0.3751, allocations: 36.08 kB / 0.4978 GB, free: 7.793 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009121/0.3842, allocations: 8.068 MB / 0.5057 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.7e-06/0.3842, allocations: 4 kB / 0.5057 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005417/0.3897, allocations: 3.013 MB / 0.5086 GB, free: 12.23 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00099/0.3906, allocations: 286.9 kB / 0.5089 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002398/0.3909, allocations: 39.92 kB / 0.5089 GB, free: 11.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008935/0.3918, allocations: 83.91 kB / 0.509 GB, free: 11.83 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000259/0.392, allocations: 96.75 kB / 0.5091 GB, free: 11.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.26e-05/0.3921, allocations: 32 kB / 0.5091 GB, free: 11.7 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001446/0.3936, allocations: 0.8798 MB / 0.51 GB, free: 10.82 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3936, allocations: 3.938 kB / 0.51 GB, free: 10.82 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001723/0.3953, allocations: 463.9 kB / 0.5104 GB, free: 10.36 MB / 430.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.0004432/0.3957, allocations: 214 kB / 0.5106 GB, free: 10.15 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004013/0.3997, allocations: 2.083 MB / 0.5127 GB, free: 8.031 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.3998, allocations: 4.062 kB / 0.5127 GB, free: 8.027 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002511/0.4023, allocations: 1.387 MB / 0.514 GB, free: 6.586 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001948/0.4042, allocations: 364.9 kB / 0.5144 GB, free: 6.238 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00808/0.4123, allocations: 4.561 MB / 0.5188 GB, free: 1.598 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001497/0.4138, allocations: 1.215 MB / 0.52 GB, free: 344 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004965/0.4143, allocations: 119.4 kB / 0.5201 GB, free: 224 kB / 430.1 MB Notification: Performance of SimCode: time 1.222e-06/0.4143, allocations: 0 / 0.5201 GB, free: 224 kB / 430.1 MB Notification: Performance of Templates: time 0.2698/0.6841, allocations: 69.18 MB / 0.5877 GB, free: 56.51 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.988238249003189]