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.0009426/0.0009426, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001378/0.002321, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001048/0.001048, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002873/0.003921, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.012/1.012, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08797/1.1, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] 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.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.|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.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.117e-05/2.263e-05, allocations: 4.984 kB / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01121/0.01123, allocations: 9.474 MB / 254 MB, free: 4.793 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007004/0.01824, allocations: 3.224 MB / 257.2 MB, free: 1.559 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001551/0.01979, allocations: 71.5 kB / 257.3 MB, free: 1.488 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001846/0.02163, allocations: 0.683 MB / 258 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002567/0.0242, allocations: 0.8458 MB / 258.8 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009267/0.02513, allocations: 387.4 kB / 259.2 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003008/0.02814, allocations: 2.665 MB / 261.9 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001691/0.02983, allocations: 1.299 MB / 263.2 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002876/0.0327, allocations: 2.184 MB / 265.4 MB, free: 9.312 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001317/0.03402, allocations: 1.317 MB / 266.7 MB, free: 7.992 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003188/0.03434, allocations: 308 kB / 267 MB, free: 7.691 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006052/0.03494, allocations: 423.7 kB / 267.4 MB, free: 7.277 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004981/0.03544, allocations: 0.7325 MB / 268.1 MB, free: 6.543 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007561/0.0362, allocations: 0.7876 MB / 268.9 MB, free: 5.754 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00188/0.03808, allocations: 2.114 MB / 271 MB, free: 3.633 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.685e-05/0.03809, allocations: 0 / 271 MB, free: 3.633 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.0381, allocations: 0 / 271 MB, free: 3.633 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.988e-05/0.03814, allocations: 0 / 271 MB, free: 3.633 MB / 266.7 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.003534/0.04167, allocations: 3.172 MB / 274.2 MB, free: 428 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.0417, allocations: 12.03 kB / 274.2 MB, free: 416 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1423/0.184, allocations: 451 kB / 274.6 MB, free: 20.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002094/0.1861, allocations: 1.073 MB / 275.7 MB, free: 20.5 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001179/0.1862, allocations: 159.1 kB / 275.9 MB, free: 20.49 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003206/0.1865, allocations: 218.9 kB / 276.1 MB, free: 20.49 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002589/0.1891, allocations: 1.613 MB / 277.7 MB, free: 20.14 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.047e-05/0.1892, allocations: 10.42 kB / 277.7 MB, free: 20.14 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001263/0.1893, allocations: 87.12 kB / 277.8 MB, free: 20.14 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000118/0.1894, allocations: 103.1 kB / 277.9 MB, free: 20.13 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001356/0.1908, allocations: 0.6242 MB / 278.5 MB, free: 20.04 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0087/0.1995, allocations: 5.517 MB / 284 MB, free: 18.09 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001077/0.2005, allocations: 0.6555 MB / 284.7 MB, free: 17.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006019/0.2012, allocations: 424.3 kB / 285.1 MB, free: 17.83 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001691/0.2013, allocations: 52.89 kB / 285.2 MB, free: 17.83 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.2013, allocations: 45.67 kB / 285.2 MB, free: 17.78 MB / 266.7 MB Notification: Performance of pre-optimization done (n=101): time 4.137e-06/0.2014, allocations: 0 / 285.2 MB, free: 17.78 MB / 266.7 MB Notification: Performance of matching and sorting (n=116): time 0.004487/0.2058, allocations: 2.465 MB / 287.7 MB, free: 17.09 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.534e-05/0.2059, allocations: 69.5 kB / 287.7 MB, free: 17.03 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006231/0.2065, allocations: 0.9675 MB / 288.7 MB, free: 16.82 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.626e-05/0.2065, allocations: 49.42 kB / 288.7 MB, free: 16.78 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002889/0.2068, allocations: 0.8829 MB / 289.6 MB, free: 16.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001685/0.207, allocations: 424.3 kB / 290 MB, free: 15.88 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002049/0.2072, allocations: 234.6 kB / 290.3 MB, free: 15.78 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.517e-05/0.2073, allocations: 369.5 kB / 290.6 MB, free: 15.47 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002036/0.2075, allocations: 162.9 kB / 290.8 MB, free: 15.46 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002711/0.2077, allocations: 0.5305 MB / 291.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006222/0.2083, allocations: 0.852 MB / 292.2 MB, free: 14.54 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-05/0.2084, allocations: 7.031 kB / 292.2 MB, free: 14.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.001146/0.2095, allocations: 0.9816 MB / 293.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.2095, allocations: 7.781 kB / 293.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.2095, allocations: 11 kB / 293.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004334/0.21, allocations: 242.6 kB / 293.4 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005908/0.2106, allocations: 336.8 kB / 293.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002077/0.2126, allocations: 4.713 MB / 298.5 MB, free: 9.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004899/0.2131, allocations: 40 kB / 298.5 MB, free: 9.031 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.526e-05/0.2132, allocations: 55.98 kB / 298.6 MB, free: 8.977 MB / 266.7 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.0003339/0.2135, allocations: 203 kB / 298.8 MB, free: 8.77 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001639/0.2137, allocations: 127.8 kB / 298.9 MB, free: 8.645 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008664/0.2146, allocations: 0.8479 MB / 299.7 MB, free: 7.781 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.2146, allocations: 12 kB / 299.7 MB, free: 7.77 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.2146, allocations: 4 kB / 299.7 MB, free: 7.766 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.2146, allocations: 7.969 kB / 299.7 MB, free: 7.758 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002456/0.217, allocations: 2.392 MB / 302.1 MB, free: 5.551 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.217, allocations: 4 kB / 302.1 MB, free: 5.547 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004317/0.2175, allocations: 207.8 kB / 302.3 MB, free: 5.344 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003141/0.2178, allocations: 195.2 kB / 302.5 MB, free: 5.156 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005362/0.2183, allocations: 302 kB / 302.8 MB, free: 4.852 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.628e-05/0.2184, allocations: 27.98 kB / 302.9 MB, free: 4.824 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002445/0.2208, allocations: 5.918 MB / 308.8 MB, free: 14.59 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.2208, allocations: 4 kB / 308.8 MB, free: 14.59 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001359/0.2222, allocations: 1.239 MB / 310 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001404/0.2223, allocations: 28 kB / 310.1 MB, free: 13.28 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003404/0.2226, allocations: 47.97 kB / 310.1 MB, free: 13.23 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.2228, allocations: 96.7 kB / 310.2 MB, free: 13.14 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.196e-05/0.2228, allocations: 31.98 kB / 310.2 MB, free: 13.11 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004004/0.2232, allocations: 483.3 kB / 310.7 MB, free: 12.68 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2232, allocations: 0 / 310.7 MB, free: 12.68 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001127/0.2244, allocations: 444 kB / 311.1 MB, free: 12.25 MB / 282.7 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%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003117/0.2247, allocations: 182.1 kB / 311.3 MB, free: 12.07 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001236/0.2259, allocations: 1.138 MB / 312.4 MB, free: 10.91 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-05/0.2259, allocations: 40.83 kB / 312.5 MB, free: 10.88 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007947/0.2267, allocations: 0.9242 MB / 313.4 MB, free: 9.914 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009296/0.2277, allocations: 484.7 kB / 313.9 MB, free: 9.457 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01371/0.2414, allocations: 3.742 MB / 317.6 MB, free: 5.66 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004948/0.2419, allocations: 0.4973 MB / 318.1 MB, free: 5.133 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005727/0.2424, allocations: 196.7 kB / 318.3 MB, free: 4.934 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005909/0.243, allocations: 384.1 kB / 318.7 MB, free: 4.559 MB / 282.7 MB Notification: Performance of SimCode: time 1.603e-06/0.243, allocations: 0 / 318.7 MB, free: 4.559 MB / 282.7 MB Notification: Performance of Templates: time 0.03131/0.2743, allocations: 24.7 MB / 343.4 MB, free: 12.29 MB / 314.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3301921477541327]