Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001054/0.001054, allocations: 84.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001128/0.001128, allocations: 165.9 kB / 24.91 MB, free: 8.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9723/0.9723, allocations: 177 MB / 205.2 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 273.4 MB, free: 1.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.439e-05/1.578e-05, allocations: 9.266 kB / 273.5 MB, free: 1.164 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.1274/0.1274, allocations: 19.99 MB / 293.4 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0111/0.1385, allocations: 6.353 MB / 299.8 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0017/0.1402, allocations: 177.5 kB / 300 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002389/0.1426, allocations: 1.415 MB / 301.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003276/0.1458, allocations: 2.036 MB / 303.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001977/0.1478, allocations: 1.273 MB / 304.7 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004785/0.1526, allocations: 6.44 MB / 311.1 MB, free: 8.891 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003009/0.1556, allocations: 3.007 MB / 314.1 MB, free: 7.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004528/0.1601, allocations: 4.665 MB / 318.8 MB, free: 4.277 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002894/0.163, allocations: 3.084 MB / 321.9 MB, free: 1.375 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007828/0.1638, allocations: 0.7656 MB / 322.7 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00136/0.1652, allocations: 1.072 MB / 323.7 MB, free: 15.55 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001175/0.1664, allocations: 1.974 MB / 325.7 MB, free: 13.69 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001953/0.1683, allocations: 2.269 MB / 328 MB, free: 11.52 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004377/0.1727, allocations: 5.405 MB / 333.4 MB, free: 6.172 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1727, allocations: 0 / 333.4 MB, free: 6.172 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1727, allocations: 0 / 333.4 MB, free: 6.172 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001118/0.1728, allocations: 4 kB / 333.4 MB, free: 6.168 MB / 282.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.00697/0.1798, allocations: 6.325 MB / 339.7 MB, free: 15.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.1798, allocations: 11.98 kB / 339.7 MB, free: 15.76 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002878/0.1827, allocations: 1.39 MB / 341.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002729/0.1854, allocations: 2.32 MB / 343.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001866/0.1856, allocations: 386.6 kB / 343.8 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004409/0.186, allocations: 0.508 MB / 344.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003896/0.1899, allocations: 3.86 MB / 348.2 MB, free: 7.086 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.507e-05/0.19, allocations: 15.88 kB / 348.2 MB, free: 7.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002738/0.1903, allocations: 211.9 kB / 348.4 MB, free: 6.863 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001539/0.1904, allocations: 246.2 kB / 348.6 MB, free: 6.621 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002175/0.1926, allocations: 1.541 MB / 350.2 MB, free: 5.059 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01262/0.2052, allocations: 13.23 MB / 363.4 MB, free: 7.363 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002419/0.2077, allocations: 2.349 MB / 365.8 MB, free: 5.008 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009698/0.2086, allocations: 0.9221 MB / 366.7 MB, free: 4.074 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003738/0.2124, allocations: 2.824 MB / 369.5 MB, free: 1.227 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.517e-05/0.2124, allocations: 60.55 kB / 369.6 MB, free: 1.156 MB / 314.7 MB Notification: Performance of pre-optimization done (n=204): time 2.795e-06/0.2124, allocations: 0 / 369.6 MB, free: 1.156 MB / 314.7 MB Notification: Performance of matching and sorting (n=221): time 0.006431/0.2188, allocations: 4.389 MB / 373.9 MB, free: 12.74 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/0.2189, allocations: 77.41 kB / 374 MB, free: 12.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001297/0.2202, allocations: 1.896 MB / 375.9 MB, free: 10.73 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.525e-05/0.2202, allocations: 65.64 kB / 376 MB, free: 10.66 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008142/0.2211, allocations: 2.054 MB / 378 MB, free: 8.582 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003731/0.2214, allocations: 0.8016 MB / 378.8 MB, free: 7.773 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004571/0.2219, allocations: 0.4903 MB / 379.3 MB, free: 7.273 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.191e-05/0.222, allocations: 301.1 kB / 379.6 MB, free: 6.977 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004303/0.2224, allocations: 329.8 kB / 379.9 MB, free: 6.648 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007967/0.2232, allocations: 1.224 MB / 381.2 MB, free: 5.016 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/0.2246, allocations: 1.853 MB / 383 MB, free: 2.766 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/0.2246, allocations: 8 kB / 383 MB, free: 2.758 MB / 330.7 MB Notification: Performance of matching and sorting (n=372) (initialization): time 0.00209/0.2267, allocations: 1.92 MB / 385 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.2267, allocations: 20 kB / 385 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.011e-05/0.2268, allocations: 28 kB / 385 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005572/0.2273, allocations: 333.4 kB / 385.3 MB, free: 420 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001349/0.2287, allocations: 0.687 MB / 386 MB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003707/0.2324, allocations: 7.361 MB / 393.4 MB, free: 7.914 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007498/0.2331, allocations: 107.9 kB / 393.5 MB, free: 7.809 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001204/0.2332, allocations: 104 kB / 393.6 MB, free: 7.707 MB / 346.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 (344): * Single equations (assignments): 337 * 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,6,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.0006903/0.2339, allocations: 307.6 kB / 393.9 MB, free: 7.395 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002807/0.2342, allocations: 247.8 kB / 394.1 MB, free: 7.152 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001899/0.2361, allocations: 1.59 MB / 395.7 MB, free: 5.512 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.2361, allocations: 20 kB / 395.7 MB, free: 5.492 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/0.2361, allocations: 12 kB / 395.7 MB, free: 5.48 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/0.2361, allocations: 11.95 kB / 395.8 MB, free: 5.469 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004754/0.2409, allocations: 4.357 MB / 400.1 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.86e-06/0.2409, allocations: 8.094 kB / 400.1 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008218/0.2417, allocations: 363.5 kB / 400.5 MB, free: 0.625 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009488/0.2427, allocations: 0.548 MB / 401 MB, free: 48 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/0.2428, allocations: 56.05 kB / 401.1 MB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006063/0.2488, allocations: 12.08 MB / 413.2 MB, free: 3.203 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.2488, allocations: 4 kB / 413.2 MB, free: 3.199 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002499/0.2513, allocations: 2.15 MB / 415.3 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005374/0.2519, allocations: 353.9 kB / 415.7 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000199/0.2521, allocations: 51.98 kB / 415.7 MB, free: 0.543 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005688/0.2526, allocations: 79.97 kB / 415.8 MB, free: 476 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002402/0.2529, allocations: 177.5 kB / 416 MB, free: 296 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.933e-05/0.253, allocations: 47.98 kB / 416 MB, free: 248 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007764/0.2537, allocations: 0.959 MB / 417 MB, free: 15.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2537, allocations: 0 / 417 MB, free: 15.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002076/0.2558, allocations: 0.9217 MB / 417.9 MB, free: 14.35 MB / 378.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 (181): * Single equations (assignments): 173 * 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,6,100.0%), (1,1,100.0%), (1,2,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.0003569/0.2562, allocations: 239.9 kB / 418.1 MB, free: 14.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001979/0.2582, allocations: 2.017 MB / 420.1 MB, free: 12.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.001e-05/0.2582, allocations: 47.84 kB / 420.2 MB, free: 11.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001438/0.2596, allocations: 1.79 MB / 422 MB, free: 10.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001489/0.2611, allocations: 0.7165 MB / 422.7 MB, free: 9.375 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008201/0.2693, allocations: 7.833 MB / 430.5 MB, free: 1.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008657/0.2702, allocations: 1.044 MB / 431.6 MB, free: 364 kB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.1003/0.3705, allocations: 410.3 kB / 432 MB, free: 99.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002026/0.3725, allocations: 0.6913 MB / 432.7 MB, free: 99.34 MB / 378.7 MB Notification: Performance of SimCode: time 1.833e-06/0.3725, allocations: 0 / 432.7 MB, free: 99.34 MB / 378.7 MB Notification: Performance of Templates: time 0.05353/0.4261, allocations: 43.23 MB / 475.9 MB, free: 75.38 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/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.9956285459920764]