Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.001081/0.001081, allocations: 79.75 kB / 22.45 MB, free: 2.098 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.001207/0.001207, allocations: 169.7 kB / 25.75 MB, free: 8.598 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.9507/0.9507, allocations: 158.6 MB / 187.5 MB, free: 2.926 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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.854e-06/1.854e-06, allocations: 0 / 251.2 MB, free: 7.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.97e-05/3.155e-05, allocations: 2.312 kB / 251.2 MB, free: 7.746 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04241/0.04244, allocations: 39 MB / 290.2 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01972/0.06216, allocations: 10.48 MB / 300.6 MB, free: 6.062 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006497/0.06866, allocations: 322.1 kB / 301 MB, free: 5.746 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01323/0.08189, allocations: 9.114 MB / 310.1 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01181/0.0937, allocations: 3.798 MB / 313.9 MB, free: 8.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005718/0.09941, allocations: 2.424 MB / 316.3 MB, free: 6.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0141/0.1135, allocations: 13.95 MB / 330.2 MB, free: 8.332 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02425/0.1378, allocations: 17.3 MB / 347.6 MB, free: 6.871 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1402/0.2779, allocations: 10.72 MB / 358.3 MB, free: 33.88 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01028/0.2882, allocations: 7.723 MB / 366 MB, free: 33.88 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004857/0.2931, allocations: 1.985 MB / 368 MB, free: 33.88 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006273/0.2993, allocations: 2.384 MB / 370.4 MB, free: 33.88 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005465/0.3048, allocations: 4.317 MB / 374.7 MB, free: 33.88 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01007/0.3149, allocations: 5.317 MB / 380 MB, free: 33.88 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01706/0.3319, allocations: 13.05 MB / 393 MB, free: 30.68 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3319, allocations: 0 / 393 MB, free: 30.68 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3319, allocations: 0.8125 kB / 393.1 MB, free: 30.68 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0007361/0.3327, allocations: 0 / 393.1 MB, free: 30.68 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.02919/0.3619, allocations: 16.71 MB / 409.8 MB, free: 19.75 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.3619, allocations: 15.98 kB / 409.8 MB, free: 19.73 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03003/0.3919, allocations: 11.35 MB / 421.1 MB, free: 8.488 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01157/0.4035, allocations: 6.968 MB / 428.1 MB, free: 1.859 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006166/0.4041, allocations: 0.947 MB / 429 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003819/0.4079, allocations: 1.241 MB / 430.3 MB, free: 15.7 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03135/0.4393, allocations: 10.99 MB / 441.3 MB, free: 4.621 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003939/0.4397, allocations: 19.89 kB / 441.3 MB, free: 4.602 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002244/0.4419, allocations: 0.5093 MB / 441.8 MB, free: 4.105 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005639/0.4425, allocations: 0.7293 MB / 442.5 MB, free: 3.375 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01975/0.4622, allocations: 6.279 MB / 448.8 MB, free: 13.1 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07663/0.5389, allocations: 49.71 MB / 498.5 MB, free: 11.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01486/0.5537, allocations: 13.84 MB / 0.5003 GB, free: 0.8125 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1299/0.6836, allocations: 1.851 MB / 0.5021 GB, free: 148.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01321/0.6968, allocations: 7.075 MB / 0.5091 GB, free: 148.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.938e-05/0.6969, allocations: 78.61 kB / 0.5091 GB, free: 148.1 MB / 410.7 MB Notification: Performance of pre-optimization done (n=349): time 6.702e-06/0.6969, allocations: 3 kB / 0.5091 GB, free: 148.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=389): time 0.02436/0.7212, allocations: 11.48 MB / 0.5203 GB, free: 145.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.705e-05/0.7213, allocations: 92.19 kB / 0.5204 GB, free: 145.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006587/0.7279, allocations: 4.868 MB / 0.5252 GB, free: 144.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000256/0.7281, allocations: 90.27 kB / 0.5253 GB, free: 144.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002708/0.7308, allocations: 6.366 MB / 0.5315 GB, free: 141.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009222/0.7318, allocations: 1.464 MB / 0.5329 GB, free: 140.4 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001479/0.7332, allocations: 1.657 MB / 0.5345 GB, free: 139.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.263e-05/0.7333, allocations: 480.8 kB / 0.535 GB, free: 139.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001752/0.735, allocations: 1.033 MB / 0.536 GB, free: 139.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003215/0.7382, allocations: 6.552 MB / 0.5424 GB, free: 131.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005717/0.744, allocations: 8.368 MB / 0.5506 GB, free: 123.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001104/0.7441, allocations: 35.78 kB / 0.5506 GB, free: 123.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.009936/0.754, allocations: 6.941 MB / 0.5574 GB, free: 116.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.103e-05/0.7541, allocations: 60.88 kB / 0.5574 GB, free: 116.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001079/0.7542, allocations: 124 kB / 0.5576 GB, free: 116.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00182/0.756, allocations: 0.9238 MB / 0.5585 GB, free: 116 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003249/0.7592, allocations: 1.808 MB / 0.5602 GB, free: 114.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005518/0.7648, allocations: 8.505 MB / 0.5685 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003816/0.7686, allocations: 443.5 kB / 0.569 GB, free: 105.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005744/0.7692, allocations: 419.2 kB / 0.5694 GB, free: 105.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002838/0.772, allocations: 0.7042 MB / 0.57 GB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009744/0.773, allocations: 0.6641 MB / 0.5707 GB, free: 104 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005148/0.7781, allocations: 3.709 MB / 0.5743 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-05/0.7781, allocations: 40 kB / 0.5744 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.536e-05/0.7781, allocations: 8 kB / 0.5744 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.492e-05/0.7782, allocations: 18.75 kB / 0.5744 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01522/0.7934, allocations: 11.69 MB / 0.5858 GB, free: 90.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.248e-06/0.7934, allocations: 4 kB / 0.5858 GB, free: 90.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001722/0.7951, allocations: 0.7567 MB / 0.5865 GB, free: 89.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001521/0.7966, allocations: 0.7438 MB / 0.5873 GB, free: 88.78 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002015/0.7968, allocations: 79.98 kB / 0.5873 GB, free: 88.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004536/0.8014, allocations: 8.005 MB / 0.5952 GB, free: 80.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.8014, allocations: 4 kB / 0.5952 GB, free: 80.35 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006021/0.8074, allocations: 4.599 MB / 0.5997 GB, free: 75.62 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001653/0.8091, allocations: 0.9335 MB / 0.6006 GB, free: 74.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00049/0.8095, allocations: 79.94 kB / 0.6006 GB, free: 74.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001653/0.8112, allocations: 223.8 kB / 0.6009 GB, free: 74.39 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005238/0.8117, allocations: 266.7 kB / 0.6011 GB, free: 74.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002219/0.8119, allocations: 123.8 kB / 0.6012 GB, free: 74 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003258/0.8152, allocations: 2.235 MB / 0.6034 GB, free: 71.79 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8152, allocations: 0 / 0.6034 GB, free: 71.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0063/0.8215, allocations: 1.977 MB / 0.6053 GB, free: 69.81 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005492/0.8221, allocations: 254.3 kB / 0.6056 GB, free: 69.55 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00793/0.83, allocations: 4.972 MB / 0.6104 GB, free: 64.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.83, allocations: 0 / 0.6104 GB, free: 64.52 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003008/0.833, allocations: 2.278 MB / 0.6127 GB, free: 62.18 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0045/0.8375, allocations: 1.222 MB / 0.6139 GB, free: 60.99 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02572/0.8632, allocations: 18.17 MB / 0.6316 GB, free: 42.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002017/0.8652, allocations: 3.208 MB / 0.6347 GB, free: 39.42 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003478/0.8687, allocations: 1.982 MB / 0.6367 GB, free: 37.43 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007171/0.8694, allocations: 422.5 kB / 0.6371 GB, free: 37.02 MB / 410.7 MB Notification: Performance of SimCode: time 1.734e-06/0.8694, allocations: 4 kB / 0.6371 GB, free: 37.02 MB / 410.7 MB Notification: Performance of Templates: time 0.182/1.051, allocations: 66.01 MB / 0.7015 GB, free: 140.8 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.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: 5.568230515811592]