Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.0009906/0.0009906, allocations: 75.75 kB / 21.97 MB, free: 2.602 MB / 18.57 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.0009423/0.0009423, allocations: 161.9 kB / 25.33 MB, free: 8.59 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.905/0.905, allocations: 158.6 MB / 187.2 MB, free: 2.93 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.[0-9,]+.|smrE.idq_rr.[0-9,]+.|smrE.idq_sr.[0-9,]+.|smrM.is.[0-9,]+.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.[0-9,]+.|smrE.idq_rr.[0-9,]+.|smrE.idq_sr.[0-9,]+.|smrM.is.[0-9,]+.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 3.938 kB / 251.1 MB, free: 7.496 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.899e-05/2.059e-05, allocations: 2.312 kB / 251.1 MB, free: 7.492 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02411/0.02413, allocations: 19.94 MB / 271 MB, free: 3.465 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01155/0.03568, allocations: 5.905 MB / 276.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002389/0.03807, allocations: 147 kB / 277.1 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002561/0.04063, allocations: 1.358 MB / 278.4 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003913/0.04455, allocations: 2.002 MB / 280.4 MB, free: 10.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002005/0.04655, allocations: 1.259 MB / 281.7 MB, free: 8.754 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006084/0.05264, allocations: 6.361 MB / 288 MB, free: 2.359 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003241/0.05588, allocations: 2.888 MB / 290.9 MB, free: 15.38 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004705/0.06058, allocations: 4.308 MB / 295.2 MB, free: 11.07 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002972/0.06355, allocations: 3.169 MB / 298.4 MB, free: 7.891 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006948/0.06425, allocations: 0.7773 MB / 299.2 MB, free: 7.113 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001504/0.06575, allocations: 1.058 MB / 300.2 MB, free: 6.055 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001166/0.06692, allocations: 2.033 MB / 302.3 MB, free: 4.016 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002092/0.06901, allocations: 2.315 MB / 304.6 MB, free: 1.695 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004818/0.07383, allocations: 5.432 MB / 310 MB, free: 12.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.07383, allocations: 0 / 310 MB, free: 12.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.07384, allocations: 0 / 310 MB, free: 12.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.111e-05/0.0739, allocations: 0 / 310 MB, free: 12.25 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.008002/0.0819, allocations: 6.907 MB / 316.9 MB, free: 5.262 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/0.08195, allocations: 19.97 kB / 316.9 MB, free: 5.242 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002827/0.08478, allocations: 1.59 MB / 318.5 MB, free: 3.648 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003593/0.08837, allocations: 3.103 MB / 321.6 MB, free: 488 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002031/0.08857, allocations: 394.6 kB / 322 MB, free: 92 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005302/0.0891, allocations: 0.5043 MB / 322.5 MB, free: 15.58 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005619/0.09472, allocations: 4.111 MB / 326.6 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-05/0.0948, allocations: 15.83 kB / 326.7 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003113/0.09512, allocations: 216 kB / 326.9 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001744/0.09529, allocations: 242.2 kB / 327.1 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004059/0.09935, allocations: 1.941 MB / 329 MB, free: 8.922 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01894/0.1183, allocations: 16.82 MB / 345.9 MB, free: 7.617 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003326/0.1216, allocations: 2.67 MB / 348.5 MB, free: 5.137 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001321/0.1229, allocations: 1.002 MB / 349.5 MB, free: 4.125 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005215/0.1281, allocations: 3.633 MB / 353.2 MB, free: 476 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.912e-05/0.1282, allocations: 63.38 kB / 353.2 MB, free: 400 kB / 330.7 MB Notification: Performance of pre-optimization done (n=205): time 3.156e-06/0.1282, allocations: 0 / 353.2 MB, free: 400 kB / 330.7 MB Notification: Performance of matching and sorting (n=222): time 0.1608/0.289, allocations: 5.625 MB / 358.8 MB, free: 72.96 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/0.289, allocations: 72.09 kB / 358.9 MB, free: 72.9 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002126/0.2912, allocations: 2.252 MB / 361.2 MB, free: 72.57 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.183e-05/0.2913, allocations: 62.7 kB / 361.2 MB, free: 72.54 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009623/0.2922, allocations: 2.535 MB / 363.8 MB, free: 71.61 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004048/0.2926, allocations: 0.8192 MB / 364.6 MB, free: 71.19 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005096/0.2931, allocations: 0.5283 MB / 365.1 MB, free: 71.13 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.413e-05/0.2932, allocations: 480.2 kB / 365.6 MB, free: 70.66 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006771/0.2939, allocations: 435.7 kB / 366 MB, free: 70.65 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001094/0.295, allocations: 1.749 MB / 367.8 MB, free: 69.06 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002227/0.2972, allocations: 2.418 MB / 370.2 MB, free: 67.49 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.62e-05/0.2972, allocations: 12 kB / 370.2 MB, free: 67.49 MB / 330.7 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.003165/0.3004, allocations: 2.6 MB / 372.8 MB, free: 67.13 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.963e-05/0.3004, allocations: 18.66 kB / 372.8 MB, free: 67.13 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.87e-05/0.3004, allocations: 26.88 kB / 372.8 MB, free: 67.13 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006609/0.3011, allocations: 348.2 kB / 373.2 MB, free: 67.04 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001389/0.3025, allocations: 0.6886 MB / 373.9 MB, free: 67.03 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004024/0.3065, allocations: 10.41 MB / 384.3 MB, free: 57.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00105/0.3076, allocations: 168 kB / 384.4 MB, free: 57.69 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001353/0.3077, allocations: 128.3 kB / 384.6 MB, free: 57.69 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (348): * Single equations (assignments): 341 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 5 systems {(3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001001/0.3087, allocations: 346.9 kB / 384.9 MB, free: 57.52 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000361/0.3091, allocations: 378.9 kB / 385.3 MB, free: 57.36 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002704/0.3118, allocations: 2.062 MB / 387.3 MB, free: 57.09 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/0.3118, allocations: 19.34 kB / 387.4 MB, free: 57.09 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.998e-06/0.3118, allocations: 7.875 kB / 387.4 MB, free: 57.09 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.326e-05/0.3118, allocations: 10.83 kB / 387.4 MB, free: 57.09 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006426/0.3182, allocations: 5.585 MB / 393 MB, free: 53.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/0.3182, allocations: 4 kB / 393 MB, free: 53.74 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008275/0.3191, allocations: 373.2 kB / 393.3 MB, free: 53.46 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001013/0.3201, allocations: 0.5339 MB / 393.9 MB, free: 53.04 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001071/0.3202, allocations: 59.27 kB / 393.9 MB, free: 52.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006108/0.3263, allocations: 17.12 MB / 411 MB, free: 35.5 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.3263, allocations: 7.141 kB / 411 MB, free: 35.49 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00336/0.3297, allocations: 2.822 MB / 413.9 MB, free: 32.87 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008249/0.3305, allocations: 0.526 MB / 414.4 MB, free: 32.37 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002045/0.3307, allocations: 51.98 kB / 414.4 MB, free: 32.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006895/0.3314, allocations: 127.9 kB / 414.6 MB, free: 32.2 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003/0.3317, allocations: 180.5 kB / 414.7 MB, free: 32.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.571e-05/0.3318, allocations: 71.97 kB / 414.8 MB, free: 31.95 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001312/0.3331, allocations: 1.241 MB / 416.1 MB, free: 30.71 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3331, allocations: 2.516 kB / 416.1 MB, free: 30.71 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002821/0.3359, allocations: 0.9306 MB / 417 MB, free: 29.78 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.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 (185): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004199/0.3363, allocations: 249.3 kB / 417.2 MB, free: 29.55 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002657/0.339, allocations: 2.607 MB / 419.8 MB, free: 26.95 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.339, allocations: 4 kB / 419.8 MB, free: 26.94 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001676/0.3406, allocations: 2.41 MB / 422.2 MB, free: 24.43 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001637/0.3423, allocations: 0.7278 MB / 423 MB, free: 23.72 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009543/0.3518, allocations: 8.268 MB / 431.2 MB, free: 15.36 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008734/0.3527, allocations: 1.242 MB / 432.5 MB, free: 14.08 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001134/0.3538, allocations: 0.599 MB / 433.1 MB, free: 13.48 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003857/0.3542, allocations: 214.9 kB / 433.3 MB, free: 13.27 MB / 330.7 MB Notification: Performance of SimCode: time 9.62e-07/0.3542, allocations: 4 kB / 433.3 MB, free: 13.27 MB / 330.7 MB Notification: Performance of Templates: time 0.05196/0.4062, allocations: 40.71 MB / 474 MB, free: 4.668 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/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: 4.2782784178853035]