Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009106/0.0009106, allocations: 85.17 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008616/0.0008616, allocations: 147.1 kB / 24.9 MB, free: 8.727 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.913/0.913, allocations: 173.4 MB / 201.5 MB, free: 8.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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|dqToThreePhase.y.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_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|dqToThreePhase.y.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 268.6 MB, free: 5.926 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.059e-05/2.208e-05, allocations: 10.05 kB / 268.6 MB, free: 5.918 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1453/0.1454, allocations: 37.04 MB / 305.6 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01729/0.1627, allocations: 10.9 MB / 316.5 MB, free: 6.418 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002457/0.1651, allocations: 366.8 kB / 316.9 MB, free: 6.293 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007028/0.1721, allocations: 8.998 MB / 325.9 MB, free: 15.81 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004836/0.177, allocations: 3.581 MB / 329.5 MB, free: 12.82 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002807/0.1798, allocations: 2.335 MB / 331.8 MB, free: 10.48 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.008577/0.1884, allocations: 13.42 MB / 345.2 MB, free: 13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.016/0.2044, allocations: 17.59 MB / 362.8 MB, free: 11.21 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008815/0.2132, allocations: 10.68 MB / 373.5 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007/0.2202, allocations: 7.509 MB / 381 MB, free: 8.992 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002199/0.2224, allocations: 1.941 MB / 382.9 MB, free: 7.051 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002577/0.225, allocations: 2.331 MB / 385.3 MB, free: 4.719 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002013/0.227, allocations: 4.071 MB / 389.3 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004342/0.2313, allocations: 5.115 MB / 394.4 MB, free: 11.51 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01114/0.2424, allocations: 12.54 MB / 407 MB, free: 14.94 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.2424, allocations: 0 / 407 MB, free: 14.94 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.2424, allocations: 0 / 407 MB, free: 14.94 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004207/0.2429, allocations: 0 / 407 MB, free: 14.94 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.02099/0.2639, allocations: 14.52 MB / 421.5 MB, free: 312 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.2639, allocations: 8.922 kB / 421.5 MB, free: 304 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01773/0.2816, allocations: 6.384 MB / 427.9 MB, free: 9.906 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009811/0.2914, allocations: 4.364 MB / 432.3 MB, free: 5.441 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005541/0.292, allocations: 0.9109 MB / 433.2 MB, free: 4.527 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001956/0.2939, allocations: 1.203 MB / 434.4 MB, free: 3.324 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2536/0.5475, allocations: 9.618 MB / 444 MB, free: 80.41 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000502/0.548, allocations: 24.53 kB / 444 MB, free: 80.41 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002234/0.5502, allocations: 0.4893 MB / 444.5 MB, free: 80.41 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007838/0.551, allocations: 0.6387 MB / 445.1 MB, free: 80.38 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01624/0.5672, allocations: 4.654 MB / 449.8 MB, free: 80.04 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06087/0.6281, allocations: 36.54 MB / 486.3 MB, free: 61.53 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008534/0.6367, allocations: 6.095 MB / 492.4 MB, free: 55.64 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002063/0.6387, allocations: 1.278 MB / 493.7 MB, free: 54.4 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009241/0.648, allocations: 4.151 MB / 497.9 MB, free: 50.54 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.198e-05/0.648, allocations: 73.31 kB / 497.9 MB, free: 50.45 MB / 378.8 MB Notification: Performance of pre-optimization done (n=349): time 8.816e-06/0.648, allocations: 0 / 497.9 MB, free: 50.45 MB / 378.8 MB Notification: Performance of matching and sorting (n=389): time 0.01797/0.666, allocations: 8.279 MB / 0.4944 GB, free: 42.78 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.205e-05/0.666, allocations: 94.47 kB / 0.4944 GB, free: 42.67 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003488/0.6695, allocations: 3.31 MB / 0.4977 GB, free: 40.15 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002472/0.6698, allocations: 91.89 kB / 0.4978 GB, free: 40.06 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001745/0.6715, allocations: 5.114 MB / 0.5028 GB, free: 35.37 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008352/0.6723, allocations: 1.402 MB / 0.5041 GB, free: 34.04 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001497/0.6738, allocations: 1.228 MB / 0.5053 GB, free: 32.94 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 2.675e-05/0.6739, allocations: 307.4 kB / 0.5056 GB, free: 32.64 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001414/0.6753, allocations: 0.8659 MB / 0.5065 GB, free: 31.77 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002085/0.6774, allocations: 3.686 MB / 0.5101 GB, free: 26.89 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004123/0.6815, allocations: 5.209 MB / 0.5152 GB, free: 20.83 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.377e-05/0.6815, allocations: 28 kB / 0.5152 GB, free: 20.8 MB / 378.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.006606/0.6882, allocations: 4.514 MB / 0.5196 GB, free: 16.91 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.617e-05/0.6882, allocations: 48 kB / 0.5196 GB, free: 16.87 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.981e-05/0.6883, allocations: 100 kB / 0.5197 GB, free: 16.77 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001876/0.6902, allocations: 0.8088 MB / 0.5205 GB, free: 15.96 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003193/0.6934, allocations: 1.551 MB / 0.522 GB, free: 14.52 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004007/0.6974, allocations: 6.036 MB / 0.5279 GB, free: 8.367 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00301/0.7004, allocations: 291.6 kB / 0.5282 GB, free: 8.082 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005863/0.701, allocations: 288 kB / 0.5285 GB, free: 7.801 MB / 378.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * 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,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001957/0.7029, allocations: 0.5839 MB / 0.529 GB, free: 7.324 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006619/0.7036, allocations: 411.6 kB / 0.5294 GB, free: 6.922 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003038/0.7066, allocations: 2.716 MB / 0.5321 GB, free: 4.207 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.534e-05/0.7066, allocations: 42.41 kB / 0.5321 GB, free: 4.168 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.7067, allocations: 8 kB / 0.5321 GB, free: 4.16 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-05/0.7067, allocations: 27.86 kB / 0.5322 GB, free: 4.133 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009209/0.7159, allocations: 6.785 MB / 0.5388 GB, free: 14.03 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.086e-06/0.7159, allocations: 0 / 0.5388 GB, free: 14.03 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001783/0.7177, allocations: 0.6948 MB / 0.5395 GB, free: 13.37 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001359/0.719, allocations: 0.6563 MB / 0.5401 GB, free: 12.71 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002087/0.7192, allocations: 71.98 kB / 0.5402 GB, free: 12.64 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00438/0.7236, allocations: 5.656 MB / 0.5457 GB, free: 6.84 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.7236, allocations: 0 / 0.5457 GB, free: 6.84 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004371/0.728, allocations: 3.26 MB / 0.5489 GB, free: 3.57 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001235/0.7292, allocations: 0.5658 MB / 0.5494 GB, free: 3.004 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003677/0.7296, allocations: 71.56 kB / 0.5495 GB, free: 2.938 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000913/0.7305, allocations: 116 kB / 0.5496 GB, free: 2.824 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003948/0.7309, allocations: 266.6 kB / 0.5499 GB, free: 2.562 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001593/0.7311, allocations: 79.97 kB / 0.55 GB, free: 2.484 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.001585/0.7326, allocations: 1.528 MB / 0.5514 GB, free: 1.145 MB / 394.8 MB Notification: Performance of sort global known variables: time 3.41e-07/0.7326, allocations: 3.375 kB / 0.5514 GB, free: 1.145 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.004622/0.7373, allocations: 1.863 MB / 0.5533 GB, free: 15.28 MB / 410.8 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%), (8,38,59.4%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004798/0.7377, allocations: 244.7 kB / 0.5535 GB, free: 15.07 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.004553/0.7423, allocations: 3.638 MB / 0.5571 GB, free: 11.76 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0001458/0.7424, allocations: 79.94 kB / 0.5571 GB, free: 11.68 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002067/0.7445, allocations: 1.772 MB / 0.5589 GB, free: 9.977 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003352/0.7479, allocations: 1.171 MB / 0.56 GB, free: 8.844 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02422/0.7721, allocations: 16.86 MB / 0.5765 GB, free: 7.902 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002784/0.7749, allocations: 2.259 MB / 0.5787 GB, free: 5.613 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.002502/0.7774, allocations: 0.8079 MB / 0.5795 GB, free: 4.801 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001962/0.7793, allocations: 1.112 MB / 0.5806 GB, free: 3.664 MB / 426.8 MB Notification: Performance of SimCode: time 1.413e-06/0.7793, allocations: 0 / 0.5806 GB, free: 3.664 MB / 426.8 MB Notification: Performance of Templates: time 0.2229/1.002, allocations: 69.93 MB / 0.6488 GB, free: 76.29 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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: 4.830553229898214]