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.001527/0.001527, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001683/0.001683, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.404/1.404, allocations: 230.6 MB / 258.3 MB, free: 7.984 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.001538/0.001538, allocations: 51.92 kB / 379 MB, free: 2.617 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2464, allocations: 53.37 MB / 432.4 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01297/0.2593, allocations: 9.755 MB / 442.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006489/0.2658, allocations: 3.176 MB / 445.3 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001644/0.2675, allocations: 71.5 kB / 445.4 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00185/0.2693, allocations: 0.7257 MB / 446.1 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002209/0.2715, allocations: 0.8155 MB / 447 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008354/0.2724, allocations: 399.4 kB / 447.3 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003196/0.2756, allocations: 2.564 MB / 449.9 MB, free: 5.352 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002159/0.2777, allocations: 1.303 MB / 451.2 MB, free: 3.984 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002166/0.2799, allocations: 1.227 MB / 452.4 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00268/0.2826, allocations: 1.537 MB / 454 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005034/0.2831, allocations: 316 kB / 454.3 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008797/0.284, allocations: 431.8 kB / 454.7 MB, free: 492 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009537/0.2849, allocations: 0.9115 MB / 455.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00148/0.2864, allocations: 1.419 MB / 457 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005026/0.2914, allocations: 4.177 MB / 461.2 MB, free: 9.949 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2914, allocations: 0 / 461.2 MB, free: 9.949 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2914, allocations: 0 / 461.2 MB, free: 9.949 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001108/0.2915, allocations: 0 / 461.2 MB, free: 9.949 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.006632/0.2982, allocations: 2.908 MB / 464.1 MB, free: 6.992 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.2982, allocations: 12.03 kB / 464.1 MB, free: 6.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008051/0.299, allocations: 307.2 kB / 464.4 MB, free: 6.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002897/0.3019, allocations: 1.467 MB / 465.9 MB, free: 5.172 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001561/0.3021, allocations: 168.3 kB / 466.1 MB, free: 5.004 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003375/0.3024, allocations: 211.9 kB / 466.3 MB, free: 4.797 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004996/0.3074, allocations: 2.799 MB / 469.1 MB, free: 1.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.442e-05/0.3075, allocations: 4 kB / 469.1 MB, free: 1.906 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002016/0.3077, allocations: 91.98 kB / 469.2 MB, free: 1.816 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001231/0.3078, allocations: 104.2 kB / 469.3 MB, free: 1.711 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004377/0.3122, allocations: 2.355 MB / 471.6 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01376/0.3259, allocations: 8.359 MB / 480 MB, free: 6.734 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002275/0.3282, allocations: 1.191 MB / 481.2 MB, free: 5.535 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001711/0.3299, allocations: 0.897 MB / 482.1 MB, free: 4.641 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000226/0.3301, allocations: 44.97 kB / 482.1 MB, free: 4.598 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.449e-05/0.3302, allocations: 51.5 kB / 482.2 MB, free: 4.535 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 2.795e-06/0.3302, allocations: 0 / 482.2 MB, free: 4.535 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01328/0.3435, allocations: 5.733 MB / 487.9 MB, free: 14.76 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.077e-05/0.3435, allocations: 68.41 kB / 488 MB, free: 14.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0021/0.3456, allocations: 1.445 MB / 489.4 MB, free: 13.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.238e-05/0.3457, allocations: 45.7 kB / 489.5 MB, free: 13.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008538/0.3466, allocations: 1.067 MB / 490.5 MB, free: 12.1 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003812/0.3469, allocations: 428.3 kB / 490.9 MB, free: 11.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004181/0.3474, allocations: 259.5 kB / 491.2 MB, free: 11.41 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.3475, allocations: 357.9 kB / 491.5 MB, free: 11.06 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/0.3488, allocations: 0.6948 MB / 492.2 MB, free: 10.36 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001491/0.3503, allocations: 1.066 MB / 493.3 MB, free: 9.141 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002761/0.353, allocations: 1.867 MB / 495.2 MB, free: 7.113 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.742e-06/0.353, allocations: 4 kB / 495.2 MB, free: 7.109 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.0041/0.3571, allocations: 2.339 MB / 497.5 MB, free: 4.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/0.3571, allocations: 11.98 kB / 497.5 MB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/0.3572, allocations: 12 kB / 497.5 MB, free: 4.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009826/0.3581, allocations: 418.6 kB / 497.9 MB, free: 4.309 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001202/0.3593, allocations: 331.5 kB / 498.3 MB, free: 3.984 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007433/0.3668, allocations: 6.734 MB / 0.4932 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001232/0.368, allocations: 104 kB / 0.4933 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001723/0.3682, allocations: 59.98 kB / 0.4933 GB, free: 12.75 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.001267/0.3694, allocations: 0.6987 MB / 0.494 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004038/0.3699, allocations: 166.9 kB / 0.4942 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003924/0.3738, allocations: 2.043 MB / 0.4962 GB, free: 9.805 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.3738, allocations: 12 kB / 0.4962 GB, free: 9.793 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.3738, allocations: 4 kB / 0.4962 GB, free: 9.789 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.3738, allocations: 3.984 kB / 0.4962 GB, free: 9.785 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008451/0.3823, allocations: 4.456 MB / 0.5005 GB, free: 5.227 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.475e-06/0.3823, allocations: 4 kB / 0.5005 GB, free: 5.223 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009146/0.3832, allocations: 207.7 kB / 0.5007 GB, free: 5.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001158/0.3843, allocations: 455.5 kB / 0.5012 GB, free: 4.562 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.574e-05/0.3844, allocations: 35.92 kB / 0.5012 GB, free: 4.527 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008938/0.3934, allocations: 8.203 MB / 0.5092 GB, free: 11.87 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.828e-06/0.3934, allocations: 11.88 kB / 0.5092 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005272/0.3987, allocations: 3.033 MB / 0.5122 GB, free: 8.75 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009248/0.3996, allocations: 310.8 kB / 0.5125 GB, free: 8.445 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003502/0.3999, allocations: 43.92 kB / 0.5125 GB, free: 8.402 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009534/0.4009, allocations: 87.84 kB / 0.5126 GB, free: 8.316 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002243/0.4011, allocations: 88.77 kB / 0.5127 GB, free: 8.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.697e-05/0.4012, allocations: 39.98 kB / 0.5127 GB, free: 8.191 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001675/0.4029, allocations: 0.9888 MB / 0.5137 GB, free: 7.203 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4029, allocations: 0 / 0.5137 GB, free: 7.203 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0017/0.4046, allocations: 467.9 kB / 0.5141 GB, free: 6.746 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.0004043/0.405, allocations: 186.9 kB / 0.5143 GB, free: 6.555 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003826/0.4088, allocations: 2.093 MB / 0.5164 GB, free: 4.426 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.4088, allocations: 0 / 0.5164 GB, free: 4.426 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002416/0.4112, allocations: 1.396 MB / 0.5177 GB, free: 2.977 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001853/0.4131, allocations: 413.8 kB / 0.5181 GB, free: 2.582 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008124/0.4212, allocations: 4.594 MB / 0.5226 GB, free: 13.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001881/0.4231, allocations: 1.788 MB / 0.5244 GB, free: 12.08 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005101/0.4236, allocations: 127.4 kB / 0.5245 GB, free: 11.96 MB / 446.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4236, allocations: 0 / 0.5245 GB, free: 11.96 MB / 446.1 MB Notification: Performance of Templates: time 0.2505/0.674, allocations: 69.47 MB / 0.5923 GB, free: 52.69 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.861776732839644]