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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00176/0.00176, allocations: 108.6 kB / 21.18 MB, free: 0.7539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002095/0.002095, allocations: 189.1 kB / 24.47 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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=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.0.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.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 43.92 kB / 371.7 MB, free: 9.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.2499, allocations: 52.19 MB / 423.9 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01235/0.2623, allocations: 9.738 MB / 433.6 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006682/0.269, allocations: 3.108 MB / 436.7 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001761/0.2707, allocations: 71.5 kB / 436.8 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001967/0.2727, allocations: 0.7178 MB / 437.5 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002817/0.2755, allocations: 0.8117 MB / 438.3 MB, free: 172 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001215/0.2767, allocations: 403.3 kB / 438.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00384/0.2806, allocations: 2.545 MB / 441.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002506/0.2831, allocations: 1.3 MB / 442.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002148/0.2852, allocations: 1.215 MB / 443.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002959/0.2882, allocations: 1.53 MB / 445.3 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008534/0.289, allocations: 316 kB / 445.6 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001394/0.2904, allocations: 427.8 kB / 446 MB, free: 8.375 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001374/0.2918, allocations: 0.9154 MB / 447 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003013/0.2948, allocations: 1.419 MB / 448.4 MB, free: 6.031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006367/0.3012, allocations: 4.157 MB / 452.5 MB, free: 1.859 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3012, allocations: 4 kB / 452.5 MB, free: 1.855 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3012, allocations: 3.938 kB / 452.5 MB, free: 1.852 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001616/0.3014, allocations: 0 / 452.5 MB, free: 1.852 MB / 350.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.008179/0.3095, allocations: 2.893 MB / 455.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.3096, allocations: 8.031 kB / 455.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008808/0.3105, allocations: 299.2 kB / 455.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003102/0.3136, allocations: 1.479 MB / 457.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/0.3137, allocations: 164.3 kB / 457.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003676/0.3141, allocations: 219.9 kB / 457.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005344/0.3194, allocations: 2.788 MB / 460.4 MB, free: 9.832 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.327e-05/0.3195, allocations: 15.97 kB / 460.4 MB, free: 9.816 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001944/0.3197, allocations: 84 kB / 460.5 MB, free: 9.734 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001233/0.3198, allocations: 108.2 kB / 460.6 MB, free: 9.625 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00469/0.3245, allocations: 2.343 MB / 462.9 MB, free: 7.266 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01577/0.3403, allocations: 8.363 MB / 471.3 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00243/0.3427, allocations: 1.181 MB / 472.5 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001813/0.3445, allocations: 0.8978 MB / 473.4 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002683/0.3448, allocations: 52.95 kB / 473.4 MB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.3448, allocations: 47.44 kB / 473.5 MB, free: 12.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 3.086e-06/0.3448, allocations: 0 / 473.5 MB, free: 12.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01419/0.359, allocations: 5.736 MB / 479.2 MB, free: 6.688 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.415e-05/0.3591, allocations: 64.41 kB / 479.3 MB, free: 6.613 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00273/0.3618, allocations: 1.433 MB / 480.7 MB, free: 5.168 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002024/0.362, allocations: 45.7 kB / 480.7 MB, free: 5.117 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009195/0.3629, allocations: 1.067 MB / 481.8 MB, free: 4.039 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005272/0.3635, allocations: 440.3 kB / 482.2 MB, free: 3.605 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005002/0.364, allocations: 251.5 kB / 482.5 MB, free: 3.352 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.3642, allocations: 365.9 kB / 482.8 MB, free: 2.988 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001304/0.3655, allocations: 0.6832 MB / 483.5 MB, free: 2.305 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001602/0.3671, allocations: 1.077 MB / 484.6 MB, free: 1.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003022/0.3701, allocations: 1.871 MB / 486.5 MB, free: 15.03 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.567e-06/0.3701, allocations: 4 kB / 486.5 MB, free: 15.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004715/0.3748, allocations: 2.335 MB / 488.8 MB, free: 12.67 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.242e-05/0.3748, allocations: 12.25 kB / 488.8 MB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.212e-05/0.3749, allocations: 12 kB / 488.8 MB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001051/0.3759, allocations: 415.1 kB / 489.2 MB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/0.3773, allocations: 339.5 kB / 489.6 MB, free: 11.9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007792/0.385, allocations: 6.734 MB / 496.3 MB, free: 4.828 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001452/0.3865, allocations: 99.94 kB / 496.4 MB, free: 4.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002586/0.3868, allocations: 63.98 kB / 496.5 MB, free: 4.668 MB / 398.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.001512/0.3883, allocations: 0.6895 MB / 497.2 MB, free: 3.969 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004898/0.3888, allocations: 167 kB / 497.3 MB, free: 3.805 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004305/0.3931, allocations: 2.047 MB / 499.4 MB, free: 1.727 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.394e-05/0.3931, allocations: 11.94 kB / 499.4 MB, free: 1.715 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.3931, allocations: 7.938 kB / 499.4 MB, free: 1.707 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.272e-05/0.3931, allocations: 11.98 kB / 499.4 MB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009093/0.4022, allocations: 4.448 MB / 0.492 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.4022, allocations: 0 / 0.492 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009666/0.4032, allocations: 211.7 kB / 0.4922 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001221/0.4044, allocations: 443.1 kB / 0.4927 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001189/0.4045, allocations: 31.98 kB / 0.4927 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008925/0.4134, allocations: 8.225 MB / 0.5007 GB, free: 3.773 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.604e-06/0.4134, allocations: 7.938 kB / 0.5007 GB, free: 3.766 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005336/0.4188, allocations: 3.025 MB / 0.5037 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009253/0.4197, allocations: 314.8 kB / 0.504 GB, free: 376 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003272/0.42, allocations: 28 kB / 0.504 GB, free: 348 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009658/0.421, allocations: 79.91 kB / 0.5041 GB, free: 268 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002374/0.4212, allocations: 104.7 kB / 0.5042 GB, free: 164 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.214e-05/0.4213, allocations: 32 kB / 0.5042 GB, free: 132 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001677/0.423, allocations: 0.9886 MB / 0.5052 GB, free: 15.14 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.423, allocations: 0 / 0.5052 GB, free: 15.14 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001638/0.4246, allocations: 467.9 kB / 0.5056 GB, free: 14.68 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.0003886/0.425, allocations: 186.9 kB / 0.5058 GB, free: 14.49 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003867/0.4289, allocations: 2.079 MB / 0.5078 GB, free: 12.37 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.4289, allocations: 3.938 kB / 0.5078 GB, free: 12.37 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002478/0.4314, allocations: 1.403 MB / 0.5092 GB, free: 10.91 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002089/0.4335, allocations: 420.6 kB / 0.5096 GB, free: 10.51 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008578/0.442, allocations: 4.592 MB / 0.5141 GB, free: 5.84 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001943/0.444, allocations: 1.784 MB / 0.5158 GB, free: 4.02 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005593/0.4445, allocations: 127.4 kB / 0.516 GB, free: 3.895 MB / 430.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4445, allocations: 0 / 0.516 GB, free: 3.895 MB / 430.1 MB Notification: Performance of Templates: time 0.2571/0.7016, allocations: 69.34 MB / 0.5837 GB, free: 68.25 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.117103582946584]