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.0009615/0.0009615, allocations: 75.77 kB / 22.46 MB, free: 2.09 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.001015/0.001015, allocations: 170.9 kB / 25.76 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.9848/0.9848, allocations: 158.6 MB / 187.5 MB, free: 2.945 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.624e-06/1.624e-06, allocations: 0 / 251.1 MB, free: 7.777 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.563e-05/2.725e-05, allocations: 2.312 kB / 251.1 MB, free: 7.773 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.0188/0.01883, allocations: 19.81 MB / 271 MB, free: 3.871 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01363/0.03245, allocations: 5.885 MB / 276.8 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00483/0.03728, allocations: 158.9 kB / 277 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004126/0.04141, allocations: 1.35 MB / 278.3 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006655/0.04806, allocations: 1.999 MB / 280.3 MB, free: 10.44 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003128/0.05119, allocations: 1.255 MB / 281.6 MB, free: 9.184 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007911/0.0591, allocations: 6.369 MB / 288 MB, free: 2.785 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005031/0.06413, allocations: 2.888 MB / 290.9 MB, free: 15.81 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00667/0.0708, allocations: 4.308 MB / 295.2 MB, free: 11.49 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005146/0.07595, allocations: 3.169 MB / 298.3 MB, free: 8.316 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001976/0.07792, allocations: 0.7812 MB / 299.1 MB, free: 7.535 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002388/0.08031, allocations: 1.046 MB / 300.2 MB, free: 6.488 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001523/0.08183, allocations: 2.037 MB / 302.2 MB, free: 4.445 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003561/0.08539, allocations: 2.311 MB / 304.5 MB, free: 2.129 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006837/0.09223, allocations: 5.432 MB / 309.9 MB, free: 12.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.09224, allocations: 0 / 309.9 MB, free: 12.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.09224, allocations: 0 / 309.9 MB, free: 12.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000282/0.09252, allocations: 4 kB / 309.9 MB, free: 12.68 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.0122/0.1047, allocations: 6.903 MB / 316.8 MB, free: 5.695 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.1048, allocations: 19.92 kB / 316.9 MB, free: 5.676 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004916/0.1097, allocations: 1.597 MB / 318.5 MB, free: 4.074 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005699/0.1154, allocations: 3.107 MB / 321.6 MB, free: 0.8984 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002988/0.1157, allocations: 390.7 kB / 321.9 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007588/0.1164, allocations: 0.5042 MB / 322.5 MB, free: 12 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00857/0.125, allocations: 4.111 MB / 326.6 MB, free: 11.77 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003718/0.1254, allocations: 15.88 kB / 326.6 MB, free: 11.75 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004321/0.1258, allocations: 208 kB / 326.8 MB, free: 11.55 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002375/0.1261, allocations: 242.2 kB / 327 MB, free: 11.31 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005799/0.1319, allocations: 1.945 MB / 329 MB, free: 9.352 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02817/0.16, allocations: 16.82 MB / 345.8 MB, free: 8.047 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004673/0.1647, allocations: 2.674 MB / 348.5 MB, free: 5.559 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001569/0.1663, allocations: 1.006 MB / 349.5 MB, free: 4.543 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006021/0.1723, allocations: 3.629 MB / 353.1 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.012e-05/0.1723, allocations: 59.39 kB / 353.1 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of pre-optimization done (n=205): time 4.008e-06/0.1723, allocations: 0 / 353.1 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of matching and sorting (n=222): time 0.1364/0.3088, allocations: 5.63 MB / 358.8 MB, free: 98.89 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.565e-05/0.3088, allocations: 77.84 kB / 358.9 MB, free: 98.83 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002508/0.3113, allocations: 2.245 MB / 361.1 MB, free: 98.5 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001341/0.3114, allocations: 61.73 kB / 361.2 MB, free: 98.47 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001097/0.3125, allocations: 2.531 MB / 363.7 MB, free: 97.55 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000531/0.3131, allocations: 0.8198 MB / 364.5 MB, free: 97.12 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005359/0.3136, allocations: 0.5356 MB / 365 MB, free: 96.85 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.51e-05/0.3137, allocations: 476.8 kB / 365.5 MB, free: 96.38 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000772/0.3144, allocations: 437.7 kB / 365.9 MB, free: 96.32 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001124/0.3155, allocations: 1.759 MB / 367.7 MB, free: 94.57 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002046/0.3176, allocations: 2.407 MB / 370.1 MB, free: 92.55 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.982e-05/0.3176, allocations: 12.25 kB / 370.1 MB, free: 92.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.003549/0.3212, allocations: 2.603 MB / 372.7 MB, free: 90.69 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.286e-05/0.3212, allocations: 20 kB / 372.7 MB, free: 90.67 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.871e-05/0.3212, allocations: 28 kB / 372.8 MB, free: 90.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007414/0.322, allocations: 346.3 kB / 373.1 MB, free: 90.35 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001333/0.3233, allocations: 0.6838 MB / 373.8 MB, free: 89.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004107/0.3274, allocations: 10.4 MB / 384.2 MB, free: 79.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001778/0.3292, allocations: 169.7 kB / 384.4 MB, free: 78.94 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001831/0.3294, allocations: 131.9 kB / 384.5 MB, free: 78.81 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.001444/0.3308, allocations: 347.5 kB / 384.8 MB, free: 78.46 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006431/0.3315, allocations: 377.6 kB / 385.2 MB, free: 78.09 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002845/0.3343, allocations: 2.06 MB / 387.3 MB, free: 76.14 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/0.3343, allocations: 20 kB / 387.3 MB, free: 76.12 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.3343, allocations: 8 kB / 387.3 MB, free: 76.11 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.421e-05/0.3343, allocations: 11.95 kB / 387.3 MB, free: 76.1 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006894/0.3412, allocations: 5.586 MB / 392.9 MB, free: 70.44 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.3412, allocations: 4 kB / 392.9 MB, free: 70.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008781/0.3421, allocations: 375.4 kB / 393.2 MB, free: 70.07 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001121/0.3432, allocations: 0.5226 MB / 393.8 MB, free: 69.51 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001325/0.3434, allocations: 59.97 kB / 393.8 MB, free: 69.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007618/0.351, allocations: 17.12 MB / 410.9 MB, free: 51.39 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.351, allocations: 9.109 kB / 411 MB, free: 51.39 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004062/0.3551, allocations: 2.828 MB / 413.8 MB, free: 48.45 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009314/0.356, allocations: 0.5252 MB / 414.3 MB, free: 47.92 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000273/0.3563, allocations: 48 kB / 414.4 MB, free: 47.88 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000753/0.357, allocations: 131.9 kB / 414.5 MB, free: 47.75 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003062/0.3573, allocations: 181.5 kB / 414.7 MB, free: 47.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.18e-05/0.3574, allocations: 59.98 kB / 414.7 MB, free: 47.51 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001375/0.3588, allocations: 1.244 MB / 416 MB, free: 46.26 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3588, allocations: 0 / 416 MB, free: 46.26 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002389/0.3612, allocations: 0.9335 MB / 416.9 MB, free: 45.32 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.0004632/0.3616, allocations: 256.9 kB / 417.2 MB, free: 45.07 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002851/0.3645, allocations: 2.602 MB / 419.8 MB, free: 42.37 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.3645, allocations: 4 kB / 419.8 MB, free: 42.37 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001782/0.3663, allocations: 2.419 MB / 422.2 MB, free: 39.81 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001983/0.3682, allocations: 0.7225 MB / 422.9 MB, free: 39.11 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009996/0.3782, allocations: 8.278 MB / 431.2 MB, free: 30.7 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008568/0.3791, allocations: 1.242 MB / 432.4 MB, free: 29.43 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.00133/0.3804, allocations: 0.6029 MB / 433 MB, free: 28.82 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004015/0.3808, allocations: 208.5 kB / 433.2 MB, free: 28.62 MB / 330.7 MB Notification: Performance of SimCode: time 1.673e-06/0.3808, allocations: 4 kB / 433.2 MB, free: 28.61 MB / 330.7 MB Notification: Performance of Templates: time 0.0496/0.4304, allocations: 40.71 MB / 473.9 MB, free: 3.922 MB / 346.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.214466157136485]