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.001441/0.001441, allocations: 84.69 kB / 21.43 MB, free: 296 kB / 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.001496/0.001496, allocations: 164 kB / 24.7 MB, free: 3.547 MB / 14.72 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 1.372/1.372, allocations: 158.6 MB / 186.5 MB, free: 6.402 MB / 174.1 MB " [Timeout remaining time 178] 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.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..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.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..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.423e-06/1.423e-06, allocations: 0 / 299 MB, free: 8.699 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.939e-05/3.081e-05, allocations: 6.219 kB / 299 MB, free: 8.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02458/0.02461, allocations: 17.52 MB / 316.5 MB, free: 7.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01379/0.0384, allocations: 5.725 MB / 322.2 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004457/0.04285, allocations: 154.9 kB / 322.4 MB, free: 1.191 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1949/0.2378, allocations: 1.341 MB / 323.7 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009452/0.2472, allocations: 1.996 MB / 325.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00334/0.2506, allocations: 1.242 MB / 327 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009808/0.2604, allocations: 6.367 MB / 333.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004999/0.2654, allocations: 2.884 MB / 336.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009197/0.2746, allocations: 4.267 MB / 340.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0063/0.2809, allocations: 2.896 MB / 343.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002946/0.2838, allocations: 0.7815 MB / 344.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004542/0.2884, allocations: 1.044 MB / 345.2 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00234/0.2907, allocations: 2.006 MB / 347.2 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004684/0.2954, allocations: 2.28 MB / 349.5 MB, free: 7.574 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009501/0.3049, allocations: 10.43 MB / 359.9 MB, free: 14.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.3049, allocations: 0 / 359.9 MB, free: 14.63 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3049, allocations: 4 kB / 359.9 MB, free: 14.63 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002879/0.3052, allocations: 0 / 359.9 MB, free: 14.63 MB / 318.1 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.01962/0.3248, allocations: 6.593 MB / 366.5 MB, free: 8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/0.3249, allocations: 11.98 kB / 366.5 MB, free: 7.988 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005967/0.3308, allocations: 1.038 MB / 367.6 MB, free: 6.953 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008297/0.3391, allocations: 3.247 MB / 370.8 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004074/0.3395, allocations: 389.6 kB / 371.2 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002077/0.3416, allocations: 0.4995 MB / 371.7 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01919/0.3608, allocations: 6.999 MB / 378.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001636/0.361, allocations: 7.953 kB / 378.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006822/0.3617, allocations: 216.5 kB / 378.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002873/0.3619, allocations: 246.2 kB / 379.1 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01449/0.3764, allocations: 5.728 MB / 384.9 MB, free: 5.641 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04953/0.426, allocations: 18.04 MB / 402.9 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008986/0.4349, allocations: 3.652 MB / 406.6 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004402/0.4393, allocations: 1.928 MB / 408.5 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01502/0.4544, allocations: 4.921 MB / 413.4 MB, free: 9.367 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.154e-05/0.4545, allocations: 55.94 kB / 413.5 MB, free: 9.309 MB / 366.1 MB Notification: Performance of pre-optimization done (n=205): time 5.581e-06/0.4545, allocations: 4 kB / 413.5 MB, free: 9.305 MB / 366.1 MB Notification: Performance of matching and sorting (n=222): time 0.02664/0.4811, allocations: 9.452 MB / 422.9 MB, free: 15.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.804e-05/0.4812, allocations: 73.41 kB / 423 MB, free: 15.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006484/0.4877, allocations: 2.595 MB / 425.6 MB, free: 13.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005411/0.4882, allocations: 65.64 kB / 425.6 MB, free: 13.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002866/0.4911, allocations: 2.427 MB / 428.1 MB, free: 10.67 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001394/0.4925, allocations: 0.7876 MB / 428.9 MB, free: 9.895 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001867/0.4943, allocations: 0.5179 MB / 429.4 MB, free: 9.367 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.4945, allocations: 301.1 kB / 429.7 MB, free: 9.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002799/0.4973, allocations: 1.271 MB / 430.9 MB, free: 7.797 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00355/0.5008, allocations: 2.204 MB / 433.1 MB, free: 5.199 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00643/0.5072, allocations: 3.66 MB / 436.8 MB, free: 1.258 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.925e-05/0.5073, allocations: 12 kB / 436.8 MB, free: 1.246 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01028/0.5176, allocations: 4.265 MB / 441.1 MB, free: 13.14 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.006e-05/0.5176, allocations: 16 kB / 441.1 MB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.561e-05/0.5177, allocations: 28 kB / 441.1 MB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001463/0.5192, allocations: 0.5139 MB / 441.6 MB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002795/0.522, allocations: 0.689 MB / 442.3 MB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01058/0.5325, allocations: 9.499 MB / 451.8 MB, free: 1.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003353/0.5359, allocations: 179.7 kB / 452 MB, free: 1.785 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006602/0.5366, allocations: 135 kB / 452.1 MB, free: 1.656 MB / 398.1 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.003906/0.5405, allocations: 1.508 MB / 453.6 MB, free: 184 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001035/0.5415, allocations: 302.1 kB / 453.9 MB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008655/0.5502, allocations: 3.595 MB / 457.5 MB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.582e-05/0.5502, allocations: 27.94 kB / 457.6 MB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.785e-05/0.5502, allocations: 8 kB / 457.6 MB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.752e-05/0.5502, allocations: 15.89 kB / 457.6 MB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0177/0.5679, allocations: 7.085 MB / 464.7 MB, free: 5.141 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-05/0.568, allocations: 4.469 kB / 464.7 MB, free: 5.137 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001923/0.5699, allocations: 388.2 kB / 465.1 MB, free: 4.777 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002272/0.5722, allocations: 0.7308 MB / 465.8 MB, free: 4.027 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002456/0.5724, allocations: 63.97 kB / 465.8 MB, free: 3.965 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01779/0.5902, allocations: 15.48 MB / 481.3 MB, free: 3.746 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.059e-05/0.5902, allocations: 7.375 kB / 481.3 MB, free: 3.742 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2244/0.8146, allocations: 5.279 MB / 486.6 MB, free: 135 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001861/0.8165, allocations: 0.5526 MB / 487.2 MB, free: 135 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006767/0.8172, allocations: 55.47 kB / 487.2 MB, free: 135 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00209/0.8193, allocations: 132.4 kB / 487.4 MB, free: 135 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006458/0.8199, allocations: 179.8 kB / 487.5 MB, free: 135 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00017/0.8201, allocations: 65.34 kB / 487.6 MB, free: 135 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003795/0.8239, allocations: 1.708 MB / 489.3 MB, free: 134.8 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.8239, allocations: 0 / 489.3 MB, free: 134.8 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005557/0.8294, allocations: 0.9261 MB / 490.2 MB, free: 134.8 MB / 430.1 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.0009541/0.8304, allocations: 245.1 kB / 490.5 MB, free: 134.7 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008681/0.8391, allocations: 3.674 MB / 494.1 MB, free: 133.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/0.8391, allocations: 8.688 kB / 494.1 MB, free: 133.1 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004311/0.8434, allocations: 2.547 MB / 496.7 MB, free: 131.7 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004063/0.8474, allocations: 0.6994 MB / 497.4 MB, free: 131.5 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01771/0.8652, allocations: 9.349 MB / 0.4949 GB, free: 127.1 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002622/0.8678, allocations: 2.776 MB / 0.4976 GB, free: 126.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002399/0.8702, allocations: 0.7226 MB / 0.4983 GB, free: 126.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005899/0.8708, allocations: 204.9 kB / 0.4985 GB, free: 126.2 MB / 430.1 MB Notification: Performance of SimCode: time 1.082e-06/0.8708, allocations: 0 / 0.4985 GB, free: 126.2 MB / 430.1 MB Notification: Performance of Templates: time 0.06788/0.9387, allocations: 40.42 MB / 0.5379 GB, free: 90.05 MB / 430.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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: 7.006010755896568]